ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix history back after a redirect
Chocobozzz108a66f0dac7
diff --git a/client/src/app/core/routing/redirect.service.ts b/client/src/app/core/routing/redirect.service.tsindex a0125e0aea..abe044d730 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 {redirectToHomepage () {console.log('Redirecting to %s...', RedirectService.DEFAULT_ROUTE)- this.router.navigate([ RedirectService.DEFAULT_ROUTE ])+ this.router.navigate([ RedirectService.DEFAULT_ROUTE ], { replaceUrl: true }).catch(() => {console.error('Cannot navigate to %s, resetting default route to %s.',@@ -40,7 +40,7 @@ export class RedirectService {)RedirectService.DEFAULT_ROUTE = RedirectService.INIT_DEFAULT_ROUTE- return this.router.navigate([ RedirectService.DEFAULT_ROUTE ])+ return this.router.navigate([ RedirectService.DEFAULT_ROUTE ], { replaceUrl: true })})}