Template
Update SLUG field in server side post_create and put_update hooks.
This commit is contained in:
1 parent
49896d6978
commit
dbbd7c63ed
7 files changed
+55
-14
No files matched your search
@@ -72,12 +72,13 @@
|
||||
|
||||
const loadArticle = (type?: string) => {
|
||||
let pathParts = path.split("/")
|
||||
let slug = pathParts[pathParts.length - 1]
|
||||
let slugOrId = pathParts[pathParts.length - 1].toString()
|
||||
|
||||
// Set default API call filter
|
||||
|
||||
let filter = {
|
||||
"article.general.locale": $currentLang,
|
||||
"article.content.slug": slug,
|
||||
"article.content.slug": slugOrId,
|
||||
}
|
||||
|
||||
// Changed filter to find simmilar content for changed language
|
||||
@@ -94,6 +95,7 @@
|
||||
let apiParams: APIParams = {
|
||||
filter,
|
||||
}
|
||||
|
||||
loading = true
|
||||
getArticles("articles", apiParams)
|
||||
.then((respoonse) => {
|
||||
|
||||
Reference in new issue
Block a user