Skip to content

Commit

Permalink
fix: knowledge base: some(!) paths (#1116)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssiyad authored Apr 13, 2023
1 parent b29b445 commit 085391b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions desk/src/components/global/kb/ArticleMiniList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
if (editMode) return;
$router.push({
path: `/${
$route.meta.editable ? 'helpdesk' : 'helpdesk'
}/kb/articles/${element.name}/${element.title_slug}`,
$route.meta.editable ? 'kb' : 'knowledge-base'
}/articles/${element.name}/${element.title_slug}`,
});
}
"
Expand Down
6 changes: 3 additions & 3 deletions desk/src/components/global/kb/CategoryCardList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
['DeskKBHome', 'DeskKBCategory'].includes(
$route.name
)
? 'helpdesk'
: 'helpdesk'
}/kb/categories/${element.name}`,
? 'kb'
: 'knowledge-base'
}/categories/${element.name}`,
})
}
"
Expand Down
2 changes: 1 addition & 1 deletion desk/src/pages/common/kb/Article.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
name: 'articles',
handler: () => {
$router.push({
path: `/${editable ? 'helpdesk' : 'helpdesk'}/kb/articles`,
path: `/${editable ? 'kb' : 'knowledge-base'}/articles`,
});
},
},
Expand Down

0 comments on commit 085391b

Please sign in to comment.