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 (c) {
|
||||||
if (type === "changedLanguage") {
|
if (type === "changedLanguage") {
|
||||||
let newPath = c.path + $location.search
|
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
|
path = newPath
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -166,7 +166,7 @@
|
|||||||
{:else if content}
|
{:else if content}
|
||||||
<ArticlesList path="{path}" tags="{content?.tags}" />
|
<ArticlesList path="{path}" tags="{content?.tags}" />
|
||||||
{:else}
|
{:else}
|
||||||
<div class="page-404">
|
<!-- <div class="page-404">
|
||||||
<div>
|
<div>
|
||||||
<Image
|
<Image
|
||||||
collectionName="general"
|
collectionName="general"
|
||||||
@ -203,5 +203,5 @@
|
|||||||
},
|
},
|
||||||
})}
|
})}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div> -->
|
||||||
{/if}
|
{/if}
|
||||||
|
Loading…
Reference in New Issue
Block a user