vueRouterBase, what does it do?
-
Can anyone shed any light on what vueRouterBase does.
I have been experimenting with quasar and I assumed that setting vueRouterBase to something like ‘/login’ would make the default routes start at /login
However, it doesn’t appear to do that as all I get is a 404 and a redirect back to the root /
-
My understanding is, your routes would all go behind ‘/login’, if that is what you set it to. So, for instance, if you have a ‘profile’ page, you would find it under ‘/login/profile’.
https://router.vuejs.org/api/#base
It also needs to be
'/login/'
.Scott
-
@s-molinari said in vueRouterBase, what does it do?:
That was my understanding also… but it doesn’t?
Should mention that I am using SSR mode. -
I think I also read somewhere, you need to be in history mode too. Are you in history mode?
Scott
-
@s-molinari Yeh… I am in history mode
-
Then, I’m out of suggestions. Sorry. It does say in the doc, only mess with that setting, if you know what you are doing.
Scott