import { redirect } from "@sveltejs/kit";
export function load() {
- // Redirect to the /home route
+ // Redirect to the /write route
throw redirect(307, "/write");
}
\ No newline at end of file
<script>
import { onMount } from 'svelte';
import { goto } from '$app/navigation';
- import { base } from '$app/paths';
+ import { resolve } from '$app/paths';
onMount(() => {
// Redirect root to login, honoring the app base path (e.g., /dailytxt)
- goto(`${base}/login`, { replaceState: true });
+ goto(resolve('/login'), { replaceState: true });
});
</script>