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
Another way could be like this
this._router.navigateByUrl(this._router.url.substr(0, this._router.url.lastIndexOf('/'))); // go to parent URL
and here is the constructor
constructor( private _activatedRoute: ActivatedRoute, private _router: Router ) { }