Can Mithril's router render a 404 at the unmatched URL instead of redirecting?
Mithril's router requires a default route, and when a URL matches none of the defined paths, the documented behavior is to navigate there — rewriting the address bar in the process. For an app on Mithril 2.x, the goal is to show a not-found component for bad URLs while keeping the requested path visible, so users can see and correct what they typed. The unce