Commit dccbdf84 authored by Hidde-Jan Jongsma's avatar Hidde-Jan Jongsma

Add catchall 404 view

parent d7a58ad9
......@@ -2,6 +2,8 @@ import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";
import NotFound from "../views/NotFound.vue";
import Utils from "../views/Utils.vue";
import CreateToken from "../views/utils/CreateToken.vue";
import RegisterOrganization from "../views/utils/RegisterOrganization.vue";
......@@ -69,10 +71,14 @@ const routes = [
component: CreateVerifyRequest,
props: true,
},
{
path: "*",
component: NotFound,
},
];
const router = new VueRouter({
mode: "hash", // FIXME history in production.
mode: process.env.NODE_ENV === "development" ? "hash" : "history", // FIXME history in production.
base: process.env.BASE_URL,
routes,
});
......
<template>
<div class="not-found pt-5 text-center">
<h1 class="mb-5">This is not the page you're looking for&hellip;</h1>
<p class="mb-5">We couldn't find the page you were looking for. Sorry :(</p>
<p><a href="javascript:history.back()">Go Back</a></p>
</div>
</template>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment