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•3y 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?