From 5267b2c70d88d9948ba0862e4d6183e3b9956b09 Mon Sep 17 00:00:00 2001 From: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com> Date: Wed, 27 Sep 2023 22:52:19 -0400 Subject: [PATCH] Temp fix to revert to hash URLs (#927) --- photon-client/src/router/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/photon-client/src/router/index.ts b/photon-client/src/router/index.ts index 37bcc2cf91..9e3e78f259 100644 --- a/photon-client/src/router/index.ts +++ b/photon-client/src/router/index.ts @@ -10,7 +10,8 @@ import NotFoundView from "@/views/NotFoundView.vue"; Vue.use(VueRouter); const router = new VueRouter({ - mode: "history", + // Using HTML5 History Mode is problematic with Javalin because each route is treated as a server endpoint which causes Javalin to return a 404 error before being redirected to the UI. + // mode: "history", base: import.meta.env.BASE_URL, routes: [ {