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

Handle missing trailing slashes in dev server #208

Closed
wants to merge 4 commits into from

Conversation

j-maas
Copy link
Contributor

@j-maas j-maas commented Aug 21, 2021

Previously when using for example elm-pages dev --base sub, the dev server would correctly rewrite localhost:1234/sub/, but not localhost:1234/sub (missing trailing slash).

This PR makes the dev server agnostic towards trailing slashes.

Reproduction of the issue

  1. npm start -- --base sub
  2. Visit localhost:1234/sub/ (it works)
  3. Visit localhost:1234/sub (it doesn't work)

@dillonkearns
Copy link
Owner

Hey @y0hy0h, thanks for the PR. I tried this out but was unsure how to test it. Could you share some steps to reproduce the issue so I can compare the before-after?

@j-maas
Copy link
Contributor Author

j-maas commented Aug 29, 2021

Sure! I've added some steps to the description.

@j-maas
Copy link
Contributor Author

j-maas commented Oct 2, 2021

I found a simpler way to fix and an additional issue with #234.

@j-maas j-maas closed this Oct 2, 2021
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