diff options
Diffstat (limited to 'client/src/app/core')
-rw-r--r-- | client/src/app/core/routing/redirect.service.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/core/routing/redirect.service.ts b/client/src/app/core/routing/redirect.service.ts index 4f4b346e2..3218040bf 100644 --- a/client/src/app/core/routing/redirect.service.ts +++ b/client/src/app/core/routing/redirect.service.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { Injectable } from '@angular/core' | 1 | import { Injectable } from '@angular/core' |
2 | import { NavigationEnd, Router } from '@angular/router' | 2 | import { NavigationCancel, NavigationEnd, Router } from '@angular/router' |
3 | import { ServerService } from '../server' | 3 | import { ServerService } from '../server' |
4 | 4 | ||
5 | @Injectable() | 5 | @Injectable() |
@@ -36,7 +36,7 @@ export class RedirectService { | |||
36 | // Track previous url | 36 | // Track previous url |
37 | this.currentUrl = this.router.url | 37 | this.currentUrl = this.router.url |
38 | router.events.subscribe(event => { | 38 | router.events.subscribe(event => { |
39 | if (event instanceof NavigationEnd) { | 39 | if (event instanceof NavigationEnd || event instanceof NavigationCancel) { |
40 | this.previousUrl = this.currentUrl | 40 | this.previousUrl = this.currentUrl |
41 | this.currentUrl = event.url | 41 | this.currentUrl = event.url |
42 | } | 42 | } |