running-tools

A collection of tools for runners and their coaches
git clone https://git.ashermorgan.net/running-tools/
Log | Files | Refs | README

commit 23328bd675e6037eb6beca495882b7f147b878ba
parent 49c5c1a5e59b4698abeb39ddf1fd8a4a83b5fded
Author: ashermorgan <59518073+ashermorgan@users.noreply.github.com>
Date:   Sun, 15 Aug 2021 12:55:47 -0700

Redirect unknown paths to /home

Diffstat:
Msrc/router/index.js | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/router/index.js b/src/router/index.js @@ -42,6 +42,10 @@ const routes = [ back: 'home', }, }, + { + path: '*', + redirect: '/home', + }, ]; const router = new VueRouter({