absolute path for /game/views

This commit is contained in:
djmil 2023-12-01 23:30:36 +01:00
parent c9019b6e03
commit 04590e3be5
2 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ public class ReactAppController {
// This controller simply redirects all UI related routes // This controller simply redirects all UI related routes
// to index.html, allowing react and react-router to work its magic // 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") @PutMapping("/error")
public String getIndex(HttpServletRequest inRequest) { public String getIndex(HttpServletRequest inRequest) {
return "/index.html"; return "/index.html";

View File

@ -48,10 +48,10 @@ function ViewSelector() {
return ( return (
<nav className='ViewSelector' > <nav className='ViewSelector' >
<div className='Container' > <div className='Container' >
<NavLink to='new'>New</NavLink> <NavLink to='/games/new'>New</NavLink>
<NavLink to='proposal'>Proposal<Counter number={guide.awaiting.proposal} /></NavLink> <NavLink to='/games/proposal'>Proposal<Counter number={guide.awaiting.proposal} /></NavLink>
<NavLink to='active' >Active<Counter number={guide.awaiting.active} /></NavLink> <NavLink to='/games/active' >Active<Counter number={guide.awaiting.active} /></NavLink>
<NavLink to='archive' >Archive</NavLink> <NavLink to='/games/archive' >Archive</NavLink>
</div> </div>
</nav> </nav>
) )