mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 13:41:56 +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 { 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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user