From d7a8b3e4c3e75e2df24a6c5896d0d896301a3ef8 Mon Sep 17 00:00:00 2001 From: Scott Wu Date: Sat, 1 Feb 2025 08:56:37 +0800 Subject: [PATCH] Update index.md --- .../03-sveltekit/09-errors-and-redirects/04-redirects/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/svelte.dev/content/tutorial/03-sveltekit/09-errors-and-redirects/04-redirects/index.md b/apps/svelte.dev/content/tutorial/03-sveltekit/09-errors-and-redirects/04-redirects/index.md index 5f4735ec1..24c18102c 100644 --- a/apps/svelte.dev/content/tutorial/03-sveltekit/09-errors-and-redirects/04-redirects/index.md +++ b/apps/svelte.dev/content/tutorial/03-sveltekit/09-errors-and-redirects/04-redirects/index.md @@ -2,7 +2,7 @@ title: Redirects --- -We can also use the `throw` mechanism to redirect from one page to another. +We can also use the `redirect` which uses `throw` internally to redirect from one page to another. Create a new `load` function in `src/routes/a/+page.server.js`: