Skip to content

Commit

Permalink
Merge pull request #1037 from ssiyad/feat/article_title_slug
Browse files Browse the repository at this point in the history
feat: article title slug in url
  • Loading branch information
ssiyad committed Mar 9, 2023
2 parents 033aac8 + 0bec23a commit 1402817
Show file tree
Hide file tree
Showing 8 changed files with 940 additions and 948 deletions.
4 changes: 1 addition & 3 deletions desk/src/components/global/kb/ArticleMiniList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
$router.push({
path: `/${
$route.meta.editable ? 'frappedesk' : 'support'
}/kb/articles/${element.name}`,
}/kb/articles/${element.name}/${element.title_slug}`,
});
}
"
Expand Down Expand Up @@ -137,14 +137,12 @@ export default {
resources: {
articles() {
const filters = { category: this.categoryId, status: "Published" };
const fields = ["name", "title", "idx", "status"];
return {
cache: ["Articles", this.categoryId, "published"],
method: "frappedesk.api.kb.get_articles",
params: {
filters,
fields,
limit: 999,
order_by: "idx",
},
Expand Down
Loading

0 comments on commit 1402817

Please sign in to comment.