I am currently working the first time with vue-router and I am wondering if there is a way to handle redirecting through vue or if there are other options in a node.js environment to do so.
For example, if someone wants to visit my site through typing the URL
example.com/contact
he will currently get to
example.com/contact#/home
But of course I want to redirect to the correct path.
router.push()(see navigation) or theredirectdirective inside the router configuration (see Redirect). If you want to navigate to a totally different URL, you could change window.location. Otherwise, if you want it to take place before the app has taken control, you have to do it from the server.