add base url to all the redirects and links

This commit is contained in:
maxDorninger
2025-07-17 16:56:34 +02:00
parent ea7556de39
commit 5ff55f1a1d
20 changed files with 83 additions and 63 deletions

View File

@@ -4,6 +4,7 @@
import { Skeleton } from '$lib/components/ui/skeleton';
import { Button } from '$lib/components/ui/button';
import { ChevronRight } from 'lucide-svelte';
import { base } from '$app/paths';
let {
media,
@@ -30,12 +31,12 @@
{/each}
{/if}
{#if isShow}
<Button class="md:col-start-2" variant="secondary" href="/dashboard/tv/add-show">
<Button class="md:col-start-2" variant="secondary" href="{base}/dashboard/tv/add-show">
More recommendations
<ChevronRight />
</Button>
{:else}
<Button class="md:col-start-2" variant="secondary" href="/dashboard/movies/add-movie">
<Button class="md:col-start-2" variant="secondary" href="{base}/dashboard/movies/add-movie">
More recommendations
<ChevronRight />
</Button>