]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/core/routing/redirect.service.ts
Rename not fount page to error page
[github/Chocobozzz/PeerTube.git] / client / src / app / core / routing / redirect.service.ts
index db4b3501862f6986efd036fa09473d028d966ab1..567fd432b04e34336ab0898711f260b673ab4201 100644 (file)
@@ -46,7 +46,7 @@ export class RedirectService {
     this.currentUrl = this.router.url
     router.events.subscribe(event => {
       if (event instanceof NavigationEnd || event instanceof NavigationCancel) {
-        if (event.url === '/404') return
+        if ([ '/401', '/404' ].includes(event.url)) return
 
         this.previousUrl = this.currentUrl
         this.currentUrl = event.url