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

Feature idea: Generate 404.html for GitHub Pages when using path-based routing #94

Open
felixblaschke opened this issue Feb 6, 2021 · 0 comments

Comments

@felixblaschke
Copy link

For the use case "Build Flutter web app and host it on GitHub pages" many users might stumble on the the typical SPA (Single Page Application) issue: web apps like to use path-based routing (http://web.app/deep/link/31) instead of hash-based routing (http://web.app/#/deep/link/31).

Normally accessing a deeplink-url will result in a 404 error. With GitHub pages a used strategy is to copy the index.html to 404.html . (404.html is a github pages magic file)

When using peanut to build web files an optional flag that addresses this issue directly. Alternatively you can provide a "post-build-dart-script" that does this and emphasize it inside readme file / example page.

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

1 participant