Skip to content

Commit

Permalink
Add error on redirect to default landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
nknguyenhc committed Apr 15, 2024
1 parent de34df2 commit 3fe1f69
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/shared/view-issue/view-issue.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ export class ViewIssueComponent implements OnInit, OnDestroy, OnChanges {
this.issue = issue;
this.pollIssue(id);
},
(err) => this.router.navigateByUrl(this.phaseService.currentPhase)
(err) => {
this.router.navigateByUrl(this.phaseService.currentPhase).then(() => {
this.errorHandlingService.handleError(new Error('Invalid URL provided!'));
});
}
);
}

Expand Down

0 comments on commit 3fe1f69

Please sign in to comment.