-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Cannot GET URLs with extension with historyApiFallback: true #332
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
Comments
I fixed it by adding the following to my webpack config (instead of
But I suspect this should be a default behavior... |
Thanks !!! it works ! |
I have the same issue one year later, thx @kirill-konshin for the solution. |
Had the same issue with a route mapping like However looks like webpack-dev-server just uses connect-history-api-fallback, that since 1.3.0 supports a disableDotRule option. Still, not sure why it's not the default. |
closing because this is not an issue in webpack-dev-server and there have been multiple answers. |
If I enter address like
http://localhost:3000/foo
everything works as expected, evenhttp://localhost:3000/foo/bar/baz
works too.But addresses with extension
http://localhost:3000/foo.html
always returnCannot GET /foo.html
.The text was updated successfully, but these errors were encountered: