Vue.Js Remove Hash From URL


It is super simple to remove hashbang(#) from URL in vuejs. You can follow Below Steps to remove Hash from URL.


Vue.Js Remove Hash From URL | Router Example

You just need to set mode: ‘history’ in Vue Router Configuration. Here is simple Change you need to do-

Example:

<script>
const router = new VueRouter({
  mode: 'history'
})
</script>      

Advertisements

Add Comment

📖 Read More