You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And using setBase(`#`) or setBase(`/') or <router base="#"> or <router base="kajshdf"> does the same
EDIT:
After some debug, i was able to use it with <router base={"#"} > instead of <router base="#" >
But this broke my first request, because "replaceBase" function at "rawth.replaceBase" can't remove base from the default initialRoute. Once my normalized base is = "http://localhost:3000#" and the current initial route is "http://localhost:3000/", the replace doesn’t match.
So i'm passing as attribute an initialRoute too, like: <router base={"/#"} initialRoute={window.location.hash.replace('#', '') || '/'}> this way my routes are http://localhost:300/#/home
The text was updated successfully, but these errors were encountered:
Hi,
I try to use "setBase" and nothing happens, actually i don't understand the functionality of it.
what did I try:
And using
setBase(`#`) or setBase(`/') or <router base="#"> or <router base="kajshdf">
does the sameEDIT:
After some debug, i was able to use it with
<router base={"#"} >
instead of<router base="#" >
But this broke my first request, because "replaceBase" function at "rawth.replaceBase" can't remove base from the default initialRoute. Once my normalized base is = "http://localhost:3000#" and the current initial route is "http://localhost:3000/", the replace doesn’t match.
So i'm passing as attribute an initialRoute too, like:
<router base={"/#"} initialRoute={window.location.hash.replace('#', '') || '/'}>
this way my routes arehttp://localhost:300/#/home
The text was updated successfully, but these errors were encountered: