Svelte · Senior · Question 28 of 75
What does the reroute hook do?
- ✓Correct answer: Translates a URL into the route that should handle it, without changing the address bar (e.g. localized paths)
- 2Redirects with a 301
- 3Defines new routes at runtime
Explanation
It's a universal hook in hooks.js. Unlike a redirect, the user still sees the original URL.