-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Description
Regardless of what page I attempt to go to, if I try to go there directly and not through the home page, it gives me, for example:
Cannot GET /take-action
How can I navigate to these pages directly?
My router file looks like
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
export default new Router({
mode: 'history',
routes: [
{
path: '/',
name: 'hello',
component: require('components/views/Hello')
},
{
path: '/find-help',
name: 'find-help',
component: require('components/views/Find')
},
{
path: '/take-action',
name: 'take-action',
component: require('components/views/Action')
},
{
path: '/about',
name: 'About',
component: require('components/views/About')
},
{
path: '*',
name: '404',
component: require('components/views/Hello')
}
]
})
nikugogoi, gscx233, herrdu, dima74, iraj-jelo and 3 more
Metadata
Metadata
Assignees
Labels
No labels