From dc3083b7e47228a5c10c1fe71ca5c027fb59a4ec Mon Sep 17 00:00:00 2001 From: Matthieu Benoist <mbenoist@ausy-group.com> Date: Thu, 14 Oct 2021 15:43:53 +0200 Subject: [PATCH] disconnect move to homepage --- src/app/core/components/main/header/header.component.ts | 4 +++- src/app/editorialisation/services/seo.service.ts | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/core/components/main/header/header.component.ts b/src/app/core/components/main/header/header.component.ts index 8793e17a..aa737100 100644 --- a/src/app/core/components/main/header/header.component.ts +++ b/src/app/core/components/main/header/header.component.ts @@ -54,9 +54,11 @@ export class HeaderComponent implements OnInit { } signOut() { + this._router.navigateByUrl(AppRoutes.home.uri); + this._userService.resetAuth(); this.closeUserDropdown(); - this._router.navigate(['/', AppRoutes.home.uri]); + } closeUserDropdown() { diff --git a/src/app/editorialisation/services/seo.service.ts b/src/app/editorialisation/services/seo.service.ts index b94e6e94..9bae842d 100644 --- a/src/app/editorialisation/services/seo.service.ts +++ b/src/app/editorialisation/services/seo.service.ts @@ -39,7 +39,6 @@ export class SeoSErvice { description = post.content.excerpt; if (description.length > 140 ) { description = `${description.substr(0,description.substr(0,136).lastIndexOf(' '))}...`; - console.log('ici.'); } } -- GitLab