[Vuejs]-Django + VueJS3 app: remove the Hashtag(#) from url

0👍

So the solution that I found for this is to use createWebHistory() and to recreate all the paths with the base url in it.

let routes = [
{ 
    path: '/newapp/',
    name: 'home',
    component: home,
    meta: { scrollPos:  { top: 140, left: 0 },
    },
},
{ 
    path: '/newapp/about',
    name: 'about',
    component: about, 
    meta: {
        scrollPos: { top: 140, left: 0 },
    }, 
},
]

Leave a comment