when logged in is true href angular code example Example: angular on back skip routes this.router.navigate(["/c"], { replaceUrl: true });