how to add useHash to router array index in angular code example Example: angular on back skip routes this.router.navigate(["/c"], { replaceUrl: true });