]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/core/routing/redirect.service.ts
Add note about instance config in contributing guide
[github/Chocobozzz/PeerTube.git] / client / src / app / core / routing / redirect.service.ts
index 844f184b414ac6cb3baad62fcfa13c2b20d7450a..b7803cce2f9f6df0946cbc9adce5e5e45b1dffea 100644 (file)
@@ -31,7 +31,7 @@ export class RedirectService {
   redirectToHomepage () {
     console.log('Redirecting to %s...', RedirectService.DEFAULT_ROUTE)
 
-    this.router.navigate([ RedirectService.DEFAULT_ROUTE ], { replaceUrl: true })
+    this.router.navigate([ RedirectService.DEFAULT_ROUTE ], { skipLocationChange: 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 ], { replaceUrl: true })
+          return this.router.navigate([ RedirectService.DEFAULT_ROUTE ], { skipLocationChange: true })
         })
 
   }