diff options
author | Chocobozzz <me@florianbigard.com> | 2022-07-08 10:32:33 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-07-08 10:58:05 +0200 |
commit | c0e3d9ff9019fc3af9791bd20e1430724b2a043a (patch) | |
tree | c43204bf44440eda4775fd1c3355f69bfeecb76e /client/src/app/core | |
parent | c482d2b7a6c59867973291f3ea3eca7d2db87d2a (diff) | |
download | PeerTube-c0e3d9ff9019fc3af9791bd20e1430724b2a043a.tar.gz PeerTube-c0e3d9ff9019fc3af9791bd20e1430724b2a043a.tar.zst PeerTube-c0e3d9ff9019fc3af9791bd20e1430724b2a043a.zip |
Rename not fount page to error page
Diffstat (limited to 'client/src/app/core')
-rw-r--r-- | client/src/app/core/routing/redirect.service.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/core/routing/redirect.service.ts b/client/src/app/core/routing/redirect.service.ts index db4b35018..567fd432b 100644 --- a/client/src/app/core/routing/redirect.service.ts +++ b/client/src/app/core/routing/redirect.service.ts | |||
@@ -46,7 +46,7 @@ export class RedirectService { | |||
46 | this.currentUrl = this.router.url | 46 | this.currentUrl = this.router.url |
47 | router.events.subscribe(event => { | 47 | router.events.subscribe(event => { |
48 | if (event instanceof NavigationEnd || event instanceof NavigationCancel) { | 48 | if (event instanceof NavigationEnd || event instanceof NavigationCancel) { |
49 | if (event.url === '/404') return | 49 | if ([ '/401', '/404' ].includes(event.url)) return |
50 | 50 | ||
51 | this.previousUrl = this.currentUrl | 51 | this.previousUrl = this.currentUrl |
52 | this.currentUrl = event.url | 52 | this.currentUrl = event.url |