Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

SvelteKit redirect tutorial incorrectly mentions manually throwing #1083

Open
eltigerchino opened this issue Jan 3, 2025 · 0 comments
Open

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant