angular routing after refresh navigate to another url code example
Example 1: navigate to route and refresh angular 6
this.router.navigate(['path/to'])
.then(() => {
window.location.reload();
});
Example 2: how to navigate without realoding angular
import { Location } from '@angular/common';
constructor(private location: Location) { }
this.location.replaceState('/profile');