aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core/routing/redirect.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/core/routing/redirect.service.ts')
-rw-r--r--client/src/app/core/routing/redirect.service.ts4
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 @@
1import { Injectable } from '@angular/core' 1import { Injectable } from '@angular/core'
2import { NavigationEnd, Router } from '@angular/router' 2import { NavigationCancel, NavigationEnd, Router } from '@angular/router'
3import { ServerService } from '../server' 3import { 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 }