use sveltekit redirect to see if it fixes issue

This commit is contained in:
2025-01-24 11:15:41 +00:00
parent da9da5010e
commit 11e2d8d9ca

View File

@@ -1,11 +1,11 @@
import { goto } from "$app/navigation";
import { error } from '@sveltejs/kit';
import { redirect, error } from '@sveltejs/kit';
export const navigation = {
toHome: () => goto("/"),
toAbout: () => goto("/about"),
toContact: () => goto("/contact"),
toRepository: () => window.location.href = "/repo",
toRepository: () => redirect(307, "/repo"),
to404: () => {
throw error(404, 'Page not found');
}