diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-24 09:44:04 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-24 09:44:04 +0200 |
commit | 108a66f0dac7586f2f7871c6bb77f73cb924f2b3 (patch) | |
tree | 974ecf6f852ebe3eeffe197341ea20d94a99c884 /client | |
parent | 1fad099d72584ae54701603729339a3cd1cf0d52 (diff) | |
download | PeerTube-108a66f0dac7586f2f7871c6bb77f73cb924f2b3.tar.gz PeerTube-108a66f0dac7586f2f7871c6bb77f73cb924f2b3.tar.zst PeerTube-108a66f0dac7586f2f7871c6bb77f73cb924f2b3.zip |
Fix history back after a redirect
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/core/routing/redirect.service.ts | 4 |
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 a0125e0ae..abe044d73 100644 --- a/client/src/app/core/routing/redirect.service.ts +++ b/client/src/app/core/routing/redirect.service.ts | |||
@@ -31,7 +31,7 @@ export class RedirectService { | |||
31 | redirectToHomepage () { | 31 | redirectToHomepage () { |
32 | console.log('Redirecting to %s...', RedirectService.DEFAULT_ROUTE) | 32 | console.log('Redirecting to %s...', RedirectService.DEFAULT_ROUTE) |
33 | 33 | ||
34 | this.router.navigate([ RedirectService.DEFAULT_ROUTE ]) | 34 | this.router.navigate([ RedirectService.DEFAULT_ROUTE ], { replaceUrl: true }) |
35 | .catch(() => { | 35 | .catch(() => { |
36 | console.error( | 36 | console.error( |
37 | 'Cannot navigate to %s, resetting default route to %s.', | 37 | 'Cannot navigate to %s, resetting default route to %s.', |
@@ -40,7 +40,7 @@ export class RedirectService { | |||
40 | ) | 40 | ) |
41 | 41 | ||
42 | RedirectService.DEFAULT_ROUTE = RedirectService.INIT_DEFAULT_ROUTE | 42 | RedirectService.DEFAULT_ROUTE = RedirectService.INIT_DEFAULT_ROUTE |
43 | return this.router.navigate([ RedirectService.DEFAULT_ROUTE ]) | 43 | return this.router.navigate([ RedirectService.DEFAULT_ROUTE ], { replaceUrl: true }) |
44 | }) | 44 | }) |
45 | 45 | ||
46 | } | 46 | } |