Set Initial Route using @solidjs/router
Hello,
I have a simple Router setup with 3 routes/tabs inside my Main component
I want to make sure that every time the page is reloaded users are navigated to /1.
Currently I just call navigate('/1') using the useNavigate from the Router package inside the Main component and just wanted to know if there is another/better way to do this.
1 Reply
every time the page is reloaded users are navigated to /1Mm 🤔 so when people click a link to
/2
it should lead to tab2
but once they reload that page w URL /2
it should go to tab1
?