aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core
diff options
context:
space:
mode:
authorkontrollanten <6680299+kontrollanten@users.noreply.github.com>2022-07-04 22:04:55 +0200
committerChocobozzz <me@florianbigard.com>2022-07-08 10:58:04 +0200
commit9469783d432d9d53eafe5ec0c0b4baa78af2510d (patch)
tree9c25ce85ed88b3ca0ae3373f66d36ec2cb6d24bc /client/src/app/core
parenta28b0f696c1990a3e7a7385e65d8ea910f46be1e (diff)
downloadPeerTube-9469783d432d9d53eafe5ec0c0b4baa78af2510d.tar.gz
PeerTube-9469783d432d9d53eafe5ec0c0b4baa78af2510d.tar.zst
PeerTube-9469783d432d9d53eafe5ec0c0b4baa78af2510d.zip
feat: custom msg upon 401 response
closes #4768
Diffstat (limited to 'client/src/app/core')
-rw-r--r--client/src/app/core/routing/redirect.service.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/app/core/routing/redirect.service.ts b/client/src/app/core/routing/redirect.service.ts
index 2b8cbaa59..db4b35018 100644
--- a/client/src/app/core/routing/redirect.service.ts
+++ b/client/src/app/core/routing/redirect.service.ts
@@ -46,6 +46,8 @@ 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
50
49 this.previousUrl = this.currentUrl 51 this.previousUrl = this.currentUrl
50 this.currentUrl = event.url 52 this.currentUrl = event.url
51 53