fix: broken site

This commit is contained in:
2023-11-15 02:05:44 +01:00
parent 561300de64
commit 623d895aea
3 changed files with 5 additions and 9 deletions

View File

@@ -1,8 +1,6 @@
import {redirect} from "@sveltejs/kit"
import type {PageLoad} from "./$types"
export const load = (async ({url}) => {
const newUrl = new URL(url)
newUrl.pathname = "/config/"
throw redirect(302, newUrl)
export const load = (() => {
throw redirect(302, "/config")
}) satisfies PageLoad

View File

@@ -1,8 +1,6 @@
import {redirect} from "@sveltejs/kit"
import type {PageLoad} from "./$types"
export const load = (({url}) => {
const newUrl = new URL(url)
newUrl.pathname = "/config/layout/"
throw redirect(302, newUrl)
export const load = (() => {
throw redirect(302, "/config/layout/")
}) satisfies PageLoad

View File

@@ -10,7 +10,7 @@
import {layout} from "$lib/undo-redo"
async function shareLayout(event: Event) {
const url = new URL(window.location.origin)
const url = new URL(window.location.href)
url.searchParams.set(
"import",
await charaFileToUriComponent({