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

fix: url with dot #348

Merged
merged 5 commits into from
Nov 28, 2023
Merged

fix: url with dot #348

merged 5 commits into from
Nov 28, 2023

Conversation

peterpeterparker
Copy link
Contributor

@peterpeterparker peterpeterparker commented Nov 28, 2023

This fixes two issues with URL with dots:

  1. SSG issue: A file /hello.world.html generates aliases /hello.word however when access in the browser, the satellite identifies .world as an extension and for that reason, no aliases were resolved.

  2. SPA issue: Getting /hello.world does not fallback on the rewrite to 404|index.html because .world was not identified as an HTML extension. To solve the issue we decided to rewrite all URLs - regardless if html, js, png or else - given that it's the last resort and given that web2 servers does the same.

@peterpeterparker peterpeterparker linked an issue Nov 28, 2023 that may be closed by this pull request
@peterpeterparker peterpeterparker merged commit d856cfc into main Nov 28, 2023
3 checks passed
@peterpeterparker peterpeterparker deleted the fix/urlwithdot branch November 28, 2023 21:05
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.

Periods in url path causes 500: Response verification failed
1 participant