AlexxNB / tinro

Highly declarative, tiny, dependency free router for Svelte's web applications.
MIT License
669 stars 30 forks source link

Redirect to another route on fallback #49

Closed DhyeyMoliya closed 3 years ago

DhyeyMoliya commented 3 years ago

Can there be a functionality to redirect to another route on fallback condition (like "/" page or /404 something?).

I am asking because on fallback, the url stays the same and the content get rendered. But can we do something like redirect to /404.

<Route path="/"> <Home /> </Route>
<Route fallback redirect="/">
AlexxNB commented 3 years ago

Thanks! This was a missed feature I added now