Skip to content

Commit

Permalink
fix: Redirec to signout instead of info site website (#2175)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Palafox <[email protected]>
  • Loading branch information
DanielPalafox and Daniel Palafox authored Feb 29, 2024
1 parent 6024cdf commit 3d8c3e0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/layout/header/header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,11 @@ export class HeaderComponent implements OnInit {
if (route === 'signin') {
this._router.navigate([ApplicationRoutes.signin])
this.mobileMenuState = false
} else if (route === 'signout' && environment.proxyMode) {
this._user.noRedirectLogout().subscribe()
} else if (route === 'signout') {
if (environment.proxyMode) {
this._user.noRedirectLogout().subscribe()
}
this.window.location.href = route
} else {
;(this.window as any).outOfRouterNavigation(environment.INFO_SITE + route)
}
Expand Down

0 comments on commit 3d8c3e0

Please sign in to comment.