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

Frontend app accepts all fall through requests and serves index.html #11

Open
destos opened this issue Jun 10, 2014 · 4 comments
Open

Comments

@destos
Copy link
Member

destos commented Jun 10, 2014

To support turning on pushstate in the routing.

@jwhitlock
Copy link
Contributor

Can you give me an example URL, what it does now, and what you want it to do?

@destos
Copy link
Member Author

destos commented Jun 10, 2014

Right now you have to go to healtharound.me/#/feedback. If you hit healtharound.me/feedback currently you get a 404, if we forward all 404's to the index.html file angular can handle the request and load the correct states. If it's a fud url, angular will just forward onto the root.

There should be a few examples of how to do this with angular and nginx.

@jwhitlock
Copy link
Contributor

OK, /index.html is handling 404s. I'm guessing there is work on the angular side to make this work - CSS and JS imports are relative, so they don't work when the URL changes.

@destos
Copy link
Member Author

destos commented Jun 10, 2014

Will update the scripts and style tags when I enable the html5 switch.

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

2 participants