Skip to content

Commit b1a0aac

Browse files
committed
✨ Add catchall router in frontend and update PWA
1 parent 9529660 commit b1a0aac

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

{{cookiecutter.project_slug}}/frontend/public/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"type": "image/png"
1414
}
1515
],
16-
"start_url": "/index.html",
16+
"start_url": "/",
1717
"display": "standalone",
1818
"background_color": "#000000",
1919
"theme_color": "#4DBA87"

{{cookiecutter.project_slug}}/frontend/src/router.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,8 @@ export default new Router({
2828
name: 'main',
2929
component: () => import(/* webpackChunkName: "main" */ './views/Main.vue'),
3030
},
31+
{
32+
path: '/*', redirect: '/',
33+
},
3134
],
3235
});

0 commit comments

Comments
 (0)