Skip to content

fix not found on reload#48

Open
linuxhelf wants to merge 1 commit intodavidnewcomb:masterfrom
linuxhelf:fix-frontend-reload
Open

fix not found on reload#48
linuxhelf wants to merge 1 commit intodavidnewcomb:masterfrom
linuxhelf:fix-frontend-reload

Conversation

@linuxhelf
Copy link
Copy Markdown
Contributor

the ui already contains reload-buttons to only reload the data, however if the user tries to reload the whole page, he get an empty page with the message "not found", since the backend is no configured to redirect the urls to index.html

this problem is not present when developing with yarn start, since all request are handled by yarn, which correctly redirects them

i did not find a a way to configure javalin to redirect unknown traffic to index.html, therefore i added a redirect for each path

Alternatives could be to change the urls to be easier to differentiate or to switch to a HashRouter in the frontend

@davidnewcomb davidnewcomb self-assigned this Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants