From d43c6b1ffc5e6c895f9e9f9de6625f17a9755c20 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 14 Jan 2021 14:13:23 +0100 Subject: Implement remote interaction --- client/src/app/core/routing/redirect.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/core/routing/redirect.service.ts') 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 @@ import { Injectable } from '@angular/core' -import { NavigationEnd, Router } from '@angular/router' +import { NavigationCancel, NavigationEnd, Router } from '@angular/router' import { ServerService } from '../server' @Injectable() @@ -36,7 +36,7 @@ export class RedirectService { // Track previous url this.currentUrl = this.router.url router.events.subscribe(event => { - if (event instanceof NavigationEnd) { + if (event instanceof NavigationEnd || event instanceof NavigationCancel) { this.previousUrl = this.currentUrl this.currentUrl = event.url } -- cgit v1.2.3