If I go to these URLs it does not work as expected (returns 404):
https://example.com/login?email=test@test.com
https://example.com/login?file=robots.txt
It looks like the path of the URL is being checked for a file extension, but also if it is a query parameter. It should only be checked when it is part of the filename.
I use a 200.html page to catch all the 404s which does not work, because I see the surge 404 page.
If I go to my website on surge to this URL:
https://example.com/login?email=test@test.com
, I get this error:If I go to these URLs it does work as expected (no 404):
https://example.com/login?email=test@test.com&tralala
https://example.com/?email=test@test.com
https://example.com/login
https://example.com/robots.txt
https://example.com/robots.txt?file=robots.txt
https://example.com/login?email=test@test
If I go to these URLs it does not work as expected (returns 404):
https://example.com/login?email=test@test.com
https://example.com/login?file=robots.txt
It looks like the path of the URL is being checked for a file extension, but also if it is a query parameter. It should only be checked when it is part of the filename.