Redirects

Sending a visitor somewhere other than the URL they requested is a common routing need – showing a fallback page when no route matches, or bouncing an unauthenticated visitor away from a protected page. The following sections cover both patterns using the <Navigate> component.