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
Redirect adds __
within directory path when experimentalSourceRewriting
is on
#7439
Comments
@varunpradhan Thanks for opening an issue. Do you have any idea what in your application initiates the redirect to the
|
@jennifer-shehane yes it uses |
I think this might be happening because the current version of Is the script that does the |
@flotwig yes it is from the same domain. |
__
within directory path in 4.6.0 still__
within directory path when experimentalSourceRewriting
is on
Can you share the source code that is doing the |
@flotwig Below is the source code that is doing the function navigate(url) {
try {
window.location.href = url;
} catch (e) {
alert(e + "url===>" + url);
}
} We are using a relative URL. |
@varunpradhan the issue occurs when setting |
@flotwig I have forwarded the feedback to development team. Thank you for the suggestion. But I don't think they will change this anytime soon. |
We're seeing the same. Are there any other workarounds? For us the setting of location.href is inside a framework so it's not something we can update. Unfortunately this means that Cypress just won't work for a large part of our site. @flotwig does this mean code served via cdn won't be intercepted? For example if we visit alpha.zenefits.com and our js is served via cdn.zenefits.com it's not expected to work?
|
Is there any timeline on when these redirecting to __ issues will be addressed? It's causing us significant pain and means we can't write tests for a number of high traffic areas of our app. Would be great to know if this is on the roadmap as we plan our future usage of Cypress. |
The code for this is done in cypress-io/cypress#15995, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
Current behavior:
When I login through the normal browser then I am able to log in.
But when running from cypress test runner the directory path is missing from URL.
The Cypress Test Runner redirects to:
http://:8084/__/branchHome.html
I have added below after there was a comment on my previous same bug still it didn't worked.
The previous bug raised: #5569
My cypress.json file:
Desired behavior:
The Cypress Test Runner should redirect to : http://:8084//branchHome.html
Test code to reproduce
Below is the code:
Versions
Cypress Version : 4.6.0
Operating System: Windows 10
Browser : Chrome 81 / Electron 80
The text was updated successfully, but these errors were encountered: