Update SLUG field in server side post_create and put_update hooks.

This commit is contained in:
2022-06-30 15:00:18 +02:00
parent 49896d6978
commit dbbd7c63ed
7 changed files with 55 additions and 14 deletions

View File

@@ -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) => {