Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: 404 Error when reloading pages or accessing URLs directly #43

Open
gabriel-cmps opened this issue Mar 6, 2025 · 3 comments
Open

Comments

@gabriel-cmps
Copy link

Description

When accessing or reloading a page on a route other than the root (/) in the application hosted at https://scrow.exchange/, the 404 - File not found error page from GitHub Pages is displayed.

Steps to reproduce:

  1. Go to https://scrow.exchange/.
  2. Navigate to a route other than the root, e.g., https://scrow.exchange/create.
  3. Press F5 to reload the page or try accessing that URL directly.
  4. The 404 - File not found error appears instead of properly loading the application.

Image

Tested browsers

Brave, Chrome, Firefox

@storopoli
Copy link
Owner

Cannot reproduce locally when running with dx serve.
So either:

  1. You find out what's going on and open an PR to fix
  2. It's a bug in GitHub pages.

@luisschwab
Copy link
Collaborator

I guess it has to do with SSR. To fix it we would need to migrate to hash-based routing.

@gabriel-cmps
Copy link
Author

We would need to generate a static build of these files because GitHub Pages only serves static files.

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

No branches or pull requests

3 participants