Update RedirectComponent to use window.location.href for external navigation instead of router.navigateByUrl.
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user