Skip to content

Commit ae14c03

Browse files
committed
add refresh fallback and fix routing errors
1 parent 6c1de83 commit ae14c03

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/router.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { useAuthStore } from "./stores/auth";
1515
* The router here allows for navigation between different functional pages of the TRIPLE App
1616
*/
1717
const router = createRouter({
18-
history: createWebHistory(import.meta.env.BASE_URL),
18+
history: createWebHistory('/solid-cockpit/'),
1919
routes: [
2020
{
2121
name: "Home",
@@ -47,6 +47,11 @@ const router = createRouter({
4747
path: "/privacy",
4848
components: { default: EditPrivacy },
4949
},
50+
{
51+
name: "CatchAll",
52+
path: "/:pathMatch(.*)*",
53+
component: NotFound,
54+
},
5055
],
5156
});
5257

0 commit comments

Comments
 (0)