Another attempt to fix 404

This commit is contained in:
ZXY101
2024-01-13 18:16:49 +02:00
parent edbd443137
commit 487a591fb6

View File

@@ -1,4 +1,5 @@
<script lang="ts">
import { page } from '$app/stores';
import { progress } from '$lib/settings';
import type { Volume } from '$lib/types';
import { ListgroupItem } from 'flowbite-svelte';
@@ -15,7 +16,12 @@
$: isComplete = currentPage === volume.mokuroData.pages.length;
</script>
<a href={`${mokuroData.title_uuid}/${mokuroData.volume_uuid}`} class="h-full w-full">
{#if $page.params.manga}
<a
data-sveltekit-replacestate
href={`/${$page.params.manga}/${mokuroData.volume_uuid}`}
class="h-full w-full"
>
<ListgroupItem>
<div
class:text-green-400={isComplete}
@@ -31,3 +37,4 @@
</div>
</ListgroupItem>
</a>
{/if}