Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

SvelteKit redirect tutorial incorrectly mentions manually throwing #1083

Open
eltigerchino opened this issue Jan 3, 2025 · 0 comments · May be fixed by #1140
Open

SvelteKit redirect tutorial incorrectly mentions manually throwing #1083

eltigerchino opened this issue Jan 3, 2025 · 0 comments · May be fixed by #1140

Comments

@eltigerchino
Copy link
Member

eltigerchino commented Jan 3, 2025

Discussed in sveltejs/kit#13263

Originally posted by samausir January 2, 2025
In https://svelte.dev/tutorial/kit/redirects, on top of the page, the throw mechanism is mentioned. But then there's no further mention of that and instead redirect is used and explained. I'm confused as to if that line is out-of-place or what it means otherwise.

The throw mechanism mentioned in the tutorial can probably be clarified in https://github.com/sveltejs/svelte.dev/blob/main/apps/svelte.dev/content/tutorial/03-sveltekit/09-errors-and-redirects/04-redirects/index.md since calling redirect() already throws for us.

@eltigerchino eltigerchino transferred this issue from sveltejs/kit Jan 3, 2025
@sacrosanctic sacrosanctic linked a pull request Feb 1, 2025 that will close this issue
3 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant