From 0c4db7d1b5107330cff209d8bb865d50e2dfed46 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Mon, 3 Sep 2018 14:00:18 +0200 Subject: [PATCH] switch router to history mode --- examples/main.js | 1 + netlify.toml | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 netlify.toml diff --git a/examples/main.js b/examples/main.js index 68f88ebf..9aa50e46 100644 --- a/examples/main.js +++ b/examples/main.js @@ -88,6 +88,7 @@ const routes = [ const router = new VueRouter({ routes, + mode: 'history', linkActiveClass: 'is-active', linkExactActiveClass: 'is-exact-active', }) diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000..ff1c0508 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,4 @@ +[[redirects]] + from = "/*" + to = "/index.html" + status = 200 \ No newline at end of file