i'm use metronic8 vue
how to remove /# in url
Hi,
Thank you for getting in touch with us.
The reason we have a hash in the URL is due to our usage of the hash mode. You can easily remove the hash from the URL by switching to HTML5 mode.
To achieve this, simply replace history property value to createWebHistory()
in file src/router/index.ts as shown below.
import {
...
createWebHistory,
} from "vue-router";
...
const router = createRouter({
history: createWebHistory(),
routes,
});
...