Spaces:
Runtime error
Runtime error
fix: remove throw on redirect for sveltekit 2
Browse files
src/routes/r/[id]/+page.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { redirect, type LoadEvent } from "@sveltejs/kit";
|
|
| 3 |
export const load = async ({ params, url }: LoadEvent) => {
|
| 4 |
const leafId = url.searchParams.get("leafId");
|
| 5 |
|
| 6 |
-
|
| 7 |
};
|
|
|
|
| 3 |
export const load = async ({ params, url }: LoadEvent) => {
|
| 4 |
const leafId = url.searchParams.get("leafId");
|
| 5 |
|
| 6 |
+
redirect(302, "../conversation/" + params.id + `?leafId=${leafId}`);
|
| 7 |
};
|