baseUrl slash breaks URL when trying to append query string #25554
Labels
E2E
Issue related to end-to-end testing
Reproducible
Can be reproduced
Triaged
Issue has been routed to backlog. This is not a commitment to have it prioritized by the team.
type: bug
Current behavior
Cypress tries to access
http://.../xyz.html/?x=y
The extra slash after xyz.html breaks the request
Desired behavior
Do not add a slash at the end of the baseUrl if it's not needed, as in the case of query parameters
Test code to reproduce
NA
Cypress Version
12.3
Node version
14
Operating System
macOS 12.6.2
Debug Logs
No response
Other
Here's a temporary workaround for the problem that I came up with. Basically, explicitly providing the URL to the visit function, instead of relying on baseUrl, produces the desired behavior.
The text was updated successfully, but these errors were encountered: