diff --git a/frontend/src/app/components/menu/menu.component.ts b/frontend/src/app/components/menu/menu.component.ts index 7a2d8b6ed..fe9fd5f09 100644 --- a/frontend/src/app/components/menu/menu.component.ts +++ b/frontend/src/app/components/menu/menu.component.ts @@ -61,12 +61,18 @@ export class MenuComponent implements OnInit, OnDestroy { this.loggedOut.emit(true); if (this.stateService.env.GIT_COMMIT_HASH_MEMPOOL_SPACE) { this.userMenuGroups$ = this.servicesApiServices.getUserMenuGroups$(); - this.router.navigateByUrl('/'); + if (window.location.toString().includes('services')) { + this.router.navigateByUrl('/login'); + } } }); } onLinkClick(link) { + if (link === 'logout') { + this.toggleMenu(false); + return; + } if (!this.isServicesPage || this.isSmallScreen()) { this.toggleMenu(false); }