by @saigowthamr

How to remove hash from vue router URL

Home » vue » How to remove hash from vue router URL

By default vue-router runs in hash mode,to remove the hash from the url we need to use history mode instead of hash mode.

This example shows you how to remove hash from a Url.

const router = new VueRouter({
  mode: 'history',
  routes: [...]
})