Implements router history mode, for cleaner URLs

This commit is contained in:
Alicia Sykes
2021-10-13 20:02:13 +01:00
parent f95b306157
commit fffa2319c1
2 changed files with 6 additions and 0 deletions

View File

@@ -65,8 +65,12 @@ const makeMetaTags = (defaultTitle) => ({
metaTags: metaTagData,
});
/* Routing mode, can be either 'hash', 'history' or 'abstract' */
const mode = 'history';
/* List of all routes, props, components and metadata */
const router = new Router({
mode,
routes: [
{ // The default view can be customized by the user
path: '/',