Template
Redirekt auf HOME, wenn keine Contentseite gefunden wurde.
This commit is contained in:
1 parent
cabaaef456
commit
432d21daeb
4 files changed
+148
-152
No files matched your search
@@ -54,6 +54,11 @@
|
||||
}
|
||||
content = null
|
||||
}
|
||||
|
||||
// Redirect to HOME if no content has been found. So the page 404 content will never shown.
|
||||
if (!content) {
|
||||
navigate("/")
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
loading = false
|
||||
@@ -79,6 +84,7 @@
|
||||
{#if loading}
|
||||
<!-- Loader -->
|
||||
{:else if content}
|
||||
<!-- {JSON.stringify(content)} -->
|
||||
{#each content.blocks || [] as b}
|
||||
<h1>{b.article.content.title}</h1>
|
||||
{JSON.stringify(b)}
|
||||
|
||||
Reference in new issue
Block a user