Even though I am using createWebHistory, my URL still contains a hash symbol like localhost/#/projects
. Am I overlooking something in my code? How can I get rid of the # symbol?
router
const routes: Array<RouteRecordRaw> = [
{
path: "/",
redirect: "/projects",
component: () => import("@/layout-newLayout.vue"),
children: [
{
path: "/projects",
name: "projects",
component: () => import("@/views/projects/index.vue"),
},
],
},
]
const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
routes,
});