We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.
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
As you're using if (argv['spa'] && request.url.indexOf(".") == -1) { (which is here because you want to 404 on real files not found).
if (argv['spa'] && request.url.indexOf(".") == -1) {
But ! If we use query string parameters with . inside, such as:
url.com/path/subpath?email=john.cena@gmail.com
then it matches the indexOf, while we still want the path to resolve as SPA.
I might open a PR when I have some time.
The text was updated successfully, but these errors were encountered:
fix(spa): parse URL before matching files for 404
2dadf24
Fixes cloudhead#203
PR opened: #204
Sorry, something went wrong.
Closed by #227.
Successfully merging a pull request may close this issue.
As you're using
if (argv['spa'] && request.url.indexOf(".") == -1) {
(which is here because you want to 404 on real files not found).But ! If we use query string parameters with
.
inside, such as:then it matches the indexOf, while we still want the path to resolve as SPA.
I might open a PR when I have some time.
The text was updated successfully, but these errors were encountered: