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 link to main.js in webapp example for nested routes #246

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

axeltlarsson
Copy link

I came across an issue when using elm-live to serve my Elm app. If I refresh while visiting a nested route such as localhost:8000/elm_rocks/new, the relative uri to include main.js is incorrect as it becomes localhost:8000/elm_rocks/main.js which fails as main.js is served from the root path.

The error I got specifically complains about "X-Content-Type-Options: nosniff".

I'm hoping this small fix can help other Elm beginners use this wonderful language ❤️!

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.

1 participant