participateapp / web-client

Participate! is an app for democratic decision making
MIT License
6 stars 1 forks source link

Fix dev server settings to serve /index.html on all routes #53

Closed ThomasWeiser closed 7 years ago

ThomasWeiser commented 7 years ago

As we use html5 routes without a hash sign, webpack-dev-server needs a configuration to serve /index.html even if it is requested to get another URL. See webpack-dev-server documentation.

Server behaviour was correct until we switched to webpack-dev-server in PR #36. I missed to configure the server appropriately. Most visible when a fresh login with facebook results in Cannot GET /facebook_redirect?code=...