forked from cms/tibi-svelte-starter
Kleiner Fix in Content Komponente - Hinzufügen des End-Slash (/) in geändertem Pfad nach Sprach-Wechsel.
This commit is contained in:
parent
0d06a61c7f
commit
706ec88576
@ -48,7 +48,7 @@
|
||||
if (c) {
|
||||
if (type === "changedLanguage") {
|
||||
let newPath = c.path + $location.search
|
||||
window.history.pushState({}, document.getElementsByTagName("title")[0].innerHTML, newPath)
|
||||
window.history.pushState({}, document.getElementsByTagName("title")[0].innerHTML, newPath + "/")
|
||||
path = newPath
|
||||
}
|
||||
|
||||
@ -166,7 +166,7 @@
|
||||
{:else if content}
|
||||
<ArticlesList path="{path}" tags="{content?.tags}" />
|
||||
{:else}
|
||||
<div class="page-404">
|
||||
<!-- <div class="page-404">
|
||||
<div>
|
||||
<Image
|
||||
collectionName="general"
|
||||
@ -203,5 +203,5 @@
|
||||
},
|
||||
})}
|
||||
</p>
|
||||
</div>
|
||||
</div> -->
|
||||
{/if}
|
||||
|
Loading…
Reference in New Issue
Block a user