Skip to content

Commit 3f5642a

Browse files
authored
docs: Fixed old reference to throwing redirects in SvelteKit tutorial (#1150)
Fixed old reference to throwing redirects This is remaining work from [the tutorial update from SvelteKit 1 to 2](1fc5055#diff-bf2d1cf2d0668155a5de372c1a78a12e766e3a6f51ac7aa552c2771c24564c27).
1 parent 9c05b05 commit 3f5642a

File tree

1 file changed

+1
-1
lines changed
  • apps/svelte.dev/content/tutorial/03-sveltekit/09-errors-and-redirects/04-redirects

1 file changed

+1
-1
lines changed

apps/svelte.dev/content/tutorial/03-sveltekit/09-errors-and-redirects/04-redirects/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Redirects
33
---
44

5-
We can also use the `throw` mechanism to redirect from one page to another.
5+
We can use the `redirect` mechanism to redirect from one page to another.
66

77
Create a new `load` function in `src/routes/a/+page.server.js`:
88

0 commit comments

Comments
 (0)