From 158490e70930e944606b35c281f17e1d3768d07d Mon Sep 17 00:00:00 2001 From: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com> Date: Wed, 27 Sep 2023 22:37:01 -0400 Subject: [PATCH 1/2] return to hash urls --- photon-client/src/router/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/photon-client/src/router/index.ts b/photon-client/src/router/index.ts index 37bcc2cf91..4203177274 100644 --- a/photon-client/src/router/index.ts +++ b/photon-client/src/router/index.ts @@ -10,7 +10,7 @@ import NotFoundView from "@/views/NotFoundView.vue"; Vue.use(VueRouter); const router = new VueRouter({ - mode: "history", + // mode: "history", base: import.meta.env.BASE_URL, routes: [ { From d7b105effa90c390e79e0fd4fd20de404ac83537 Mon Sep 17 00:00:00 2001 From: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com> Date: Wed, 27 Sep 2023 22:44:31 -0400 Subject: [PATCH 2/2] add doc --- photon-client/src/router/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/photon-client/src/router/index.ts b/photon-client/src/router/index.ts index 4203177274..9e3e78f259 100644 --- a/photon-client/src/router/index.ts +++ b/photon-client/src/router/index.ts @@ -10,6 +10,7 @@ import NotFoundView from "@/views/NotFoundView.vue"; Vue.use(VueRouter); const router = new VueRouter({ + // 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: [