redirect updated
authorPhiTux <redacted>
Wed, 8 Oct 2025 16:12:59 +0000 (18:12 +0200)
committerPhiTux <redacted>
Wed, 8 Oct 2025 16:12:59 +0000 (18:12 +0200)
frontend/src/routes/+page.js
frontend/src/routes/+page.svelte

index 974327394753975844ed52599e2db47d679ff305..0dde40f21453ac99910aab80f756044e13622717 100644 (file)
@@ -1,6 +1,6 @@
 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
index c911c3a7f9473ce221a74d064a441a447474c919..8922eca82b8cb008366e7d36d644793adae18c82 100644 (file)
@@ -1,10 +1,10 @@
 <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>
git clone https://git.99rst.org/PROJECT