quasar is automatically addding '#/' at the end of each route.
-
I am trying quasar for the first time. So, this happened on the new installation, without any modification. It’s adding ‘#/’ in every route. So, if I add path ‘/about’ to my route file and open ‘/about’ in browser the, it redirects to ‘/about#/’ and 404 error page is rendered instead.
-
It’s html5 routing, not related to quasar, I assume you use
vue-router
.
You URL should look like http://domain/#/ or http://domain/#/about -
In your quasar.conf.js file, search “vueRouterMode” and put the value to ‘history’, default is ‘hash’
-
@Venturix Thanks you very much.