T
TanStack3y ago
plain-purple

Best pattern for fallback paths?

Hi yall, I'm trying to redirect invalid paths to root path. Not sure how to do this correctly (or at all). Maybe, is there a list of routes I can check against, maybe a hook or router method? Then I can redirect manually?
1 Reply
other-emerald
other-emerald3y ago
When do you need this redirect to happen? Do you need it to happen before the link is clicked (link generation)? Rigth when the link is clicked? Or after they hit a not-found/404 page?

Did you find this page helpful?