From 04590e3be55a2b451541bbdf1ad3d58b54d8e635 Mon Sep 17 00:00:00 2001 From: djmil Date: Fri, 1 Dec 2023 23:30:36 +0100 Subject: [PATCH] absolute path for /game/views --- .../main/java/djmil/cordacheckers/ReactAppController.java | 2 +- webapp/src/container/Games.jsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/src/main/java/djmil/cordacheckers/ReactAppController.java b/backend/src/main/java/djmil/cordacheckers/ReactAppController.java index ffd82bf..5cfc464 100644 --- a/backend/src/main/java/djmil/cordacheckers/ReactAppController.java +++ b/backend/src/main/java/djmil/cordacheckers/ReactAppController.java @@ -11,7 +11,7 @@ public class ReactAppController { // This controller simply redirects all UI related routes // to index.html, allowing react and react-router to work its magic - @GetMapping(value = { "", "/", "/games", "/games/*", "/about","/leaderboard" }) + @GetMapping(value = { "", "/", "/games", "/games/*", "/about","/leaderboard" }) @PutMapping("/error") public String getIndex(HttpServletRequest inRequest) { return "/index.html"; diff --git a/webapp/src/container/Games.jsx b/webapp/src/container/Games.jsx index 8bcaae2..35c0679 100644 --- a/webapp/src/container/Games.jsx +++ b/webapp/src/container/Games.jsx @@ -48,10 +48,10 @@ function ViewSelector() { return ( )