Redirekt auf HOME, wenn keine Contentseite gefunden wurde.

This commit is contained in:
mario committed 2022-06-03 11:12:35 +02:00
1 parent cabaaef456
commit 432d21daeb
4 files changed
+148 -152

No files matched your search

+6
View File
@@ -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)}