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
You can navigate to your parent root like this
this.router.navigate(['.'], { relativeTo: this.activeRoute.parent });
You will need to inject the current active Route in the constructor
constructor( private router: Router, private activeRoute: ActivatedRoute) { }