Update SLUG field in server side post_create and put_update hooks.
This commit is contained in:
@@ -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