Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

veue laravel remove #/

import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

let router = new Router({
    mode: 'history', //removes # (hashtag) from url
    base: '/',
    fallback: true, //router should fallback to hash (#) mode when the browser does not support history.pushState
    routes: [
        { path: '*', require('../components/pages/NotFound.vue') },
        //... + all your other paths here
    ]
})
export default router
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #veue #laravel #remove
ADD COMMENT
Topic
Name
3+9 =