Removing hash from URL Laravel-Vue

By | 27/01/2020

The hash (#) in the url is there to support older browsers so if you need to support older browsers you best not remove it.

To move to a cleaner URL structure we need to use the HTML 5 History mode by adding mode: ‘history’ to your router.

const router = new VueRouter({
mode: 'history',

The hash should now disappear from your urls.

N.B. npm run watch is running in the background, its worth executing!