Closed gjuchault closed 3 years ago
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.
PR opened: #204
Closed by #227.
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.