mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 21:41:57 +00:00
use sveltekit redirect to see if it fixes issue
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
import { goto } from "$app/navigation";
|
import { goto } from "$app/navigation";
|
||||||
import { error } from '@sveltejs/kit';
|
import { redirect, error } from '@sveltejs/kit';
|
||||||
|
|
||||||
export const navigation = {
|
export const navigation = {
|
||||||
toHome: () => goto("/"),
|
toHome: () => goto("/"),
|
||||||
toAbout: () => goto("/about"),
|
toAbout: () => goto("/about"),
|
||||||
toContact: () => goto("/contact"),
|
toContact: () => goto("/contact"),
|
||||||
toRepository: () => window.location.href = "/repo",
|
toRepository: () => redirect(307, "/repo"),
|
||||||
to404: () => {
|
to404: () => {
|
||||||
throw error(404, 'Page not found');
|
throw error(404, 'Page not found');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user