Kleiner Fix in Content Komponente - Hinzufügen des End-Slash (/) in geändertem Pfad nach Sprach-Wechsel.

This commit is contained in:
Mario Linz 2022-06-15 14:18:07 +02:00
parent 0d06a61c7f
commit 706ec88576

View File

@ -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}