Skip to content

Commit 3bdc5c6

Browse files
authored
Merge pull request #965 from Ostap-Zherebetskyi/fix/logout_redirect
[ENG-10845] Logout URL somehow redirects to `my-project` after success, which then auto redirects to `sign-in`
2 parents 91b2d00 + 8f20ab9 commit 3bdc5c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/core/services/auth.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class AuthService {
8585

8686
if (isPlatformBrowser(this.platformId)) {
8787
this.cookieService.deleteAll();
88-
window.location.href = `${this.webUrl}/logout/?next=${encodeURIComponent(nextUrl || window.location.origin)}`;
88+
window.location.href = `${this.webUrl}/logout/?next=${encodeURIComponent(nextUrl || `${window.location.origin}/`)}`;
8989
}
9090
}
9191

0 commit comments

Comments
 (0)