should just keep the previous page don't refresh again angular code example
Example: navigate to route and refresh angular 6
this.router.navigate(['path/to'])
.then(() => {
window.location.reload();
});
this.router.navigate(['path/to'])
.then(() => {
window.location.reload();
});