My problem is quite classic. I have a private part of an application which is behind a login form. When the login is successful, it goes to a child route for th
login form
My solution is:
const urlSplit = this._router.url.split('/'); this._router.navigate([urlSplit.splice(0, urlSplit.length - 1).join('/')], { relativeTo: this._route.parent });
And the Router injection:
Router
private readonly _router: Router