-
Notifications
You must be signed in to change notification settings - Fork 426
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
[Bug]: Page does not work when opening a new tab with window.open() #1616
Comments
Why are you using the non-angular way to open an angular internal route? |
We have a common |
We are running into this exact same issue for the same use case. We want to open page in a new tab. |
This is also the case if you have a link in an external page pointing to a page requiring authentication. |
We are encountering this in links to our application from an SSO landing page (which opens the application in a new tab). One work-around we attempted was to link to a static html landing page which would then redirect to the home page of the application, but we get the same result: |
same for my project.... |
same for my project... if (this.popupService.currentWindowIsPopUp()) {
this.popupService.sendMessageToMainWindow(currentUrl);
return of(null);
} angular-auth-oidc-client/projects/angular-auth-oidc-client/src/lib/auth-state/check-auth.service.ts Line 111 in 6f44b82
Workaround use Currently library checks if is popup by checking angular-auth-oidc-client/projects/angular-auth-oidc-client/src/lib/login/popup/popup.service.ts Line 34 in 2011258
|
I was running into this issue as well. Your workaround of 'noopener' worked for me. Thanks for the workaround. |
It's exactly our situation : we can't ask the external page to add the 'noopener' option when they open our page.
It's injected in the module like this :
|
Happen also in 13.1.0 @tiberiuzuld your workaround work for me. Thanks |
Version
15.0.1
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Steps to reproduce the behavior
A clear and concise description of what you expected to happen.
Additional context
<a [routerLink]="['/page']" target="_blank">Url</a>
Does not work with
window.open(url)
The text was updated successfully, but these errors were encountered: