Update RedirectComponent to use window.location.href for external navigation instead of router.navigateByUrl.
This commit is contained in:
parent
19bc6fc8e3
commit
5d9bf922a4
|
|
@ -25,7 +25,7 @@ export class RedirectComponent implements OnInit {
|
||||||
if (type) {
|
if (type) {
|
||||||
const target = this.getRedirectTarget(type);
|
const target = this.getRedirectTarget(type);
|
||||||
if (target) {
|
if (target) {
|
||||||
this.router.navigateByUrl(target).then();
|
window.location.href = target;
|
||||||
} else {
|
} else {
|
||||||
this.router.navigate(['/']).then();
|
this.router.navigate(['/']).then();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user