diff --git a/src/app/shared/view-issue/view-issue.component.ts b/src/app/shared/view-issue/view-issue.component.ts index 7ddb47679..f36b67260 100644 --- a/src/app/shared/view-issue/view-issue.component.ts +++ b/src/app/shared/view-issue/view-issue.component.ts @@ -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!')); + }); + } ); }