-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
window.location.href = 'value' returns 'about:blank' in v13.0.0 #1230
Labels
bug
Something isn't working
Comments
Example passing (v12.10.3): Example failing (v13.2.1): |
Workaround is to set: Object.defineProperty(window.location, 'href', {
writable: true,
}); |
capricorn86
added a commit
that referenced
this issue
Jan 24, 2024
…location.href" when using Happy DOM in the global scope (e.g. by using @happy-dom/global-registrator).
capricorn86
added a commit
that referenced
this issue
Jan 24, 2024
…f-=-value-returns-aboutblank-in-v1300 #1230@patch: Fixes issue where it is not possible to set "globalThis.…
@capricorn86 Thank you! |
No problem @gkiely! 🙂 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
In versions prior to v13, using
GlobalRegistrator.register()
andwindow.location.href = 'value'
would set the href value. In v13 it always returns the value"about:blank"
In addition to this, clicking on links no longer updates window.location.href.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Prints the value that was set.
Device:
The text was updated successfully, but these errors were encountered: