From 9facb1584aab72b298731bfc68c351936aeb4695 Mon Sep 17 00:00:00 2001
From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com>
Date: Wed, 31 Mar 2021 16:21:31 +0200
Subject: [PATCH] fix: typo + news navigation issue

---
 src/app/header/header.component.html                         | 2 +-
 src/app/post/components/post-header/post-header.component.ts | 2 +-
 src/app/post/news.component.html                             | 1 -
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/app/header/header.component.html b/src/app/header/header.component.html
index 9e8cab7b2..3f402c5cb 100644
--- a/src/app/header/header.component.html
+++ b/src/app/header/header.component.html
@@ -10,7 +10,7 @@
   </div>
   <div fxLayout="row" class="right-header" fxLayoutAlign="center center" fxLayoutGap="3vw">
     <a routerLink="/news" [routerLinkActive]="'active'" i18n>Actualités</a>
-    <a routerLink="/acteurs" [routerLinkActive]="'active'" i18n>Cartographie de acteurs</a>
+    <a routerLink="/acteurs" [routerLinkActive]="'active'" i18n>Cartographie des acteurs</a>
     <a routerLink="/about" [routerLinkActive]="'active'" i18n>Qui sommes-nous ?</a>
     <a *ngIf="isAdmin" routerLink="/admin" [routerLinkActive]="'active'">Administration</a>
     <button *ngIf="isLoggedIn" class="red" routerLink="/profile" [routerLinkActive]="'active'">
diff --git a/src/app/post/components/post-header/post-header.component.ts b/src/app/post/components/post-header/post-header.component.ts
index 21ef7a388..2a9125ad0 100644
--- a/src/app/post/components/post-header/post-header.component.ts
+++ b/src/app/post/components/post-header/post-header.component.ts
@@ -107,7 +107,7 @@ export class PostHeaderComponent implements OnInit {
   }
 
   private setQueryParam(): void {
-    this.router.navigate([], {
+    this.router.navigate(['/news'], {
       relativeTo: this.route,
       queryParams: {
         mainTag: this.mainActiveTag.slug == this.tagEnum.etudes ? this.mainActiveTag.name : this.mainActiveTag.slug,
diff --git a/src/app/post/news.component.html b/src/app/post/news.component.html
index 93d255936..34a028206 100644
--- a/src/app/post/news.component.html
+++ b/src/app/post/news.component.html
@@ -1,5 +1,4 @@
 <app-post-header (filterTags)="setFilters($event)"></app-post-header>
 <div class="section-container">
-  <!-- <app-post-list [filters]="filters"></app-post-list> -->
   <router-outlet></router-outlet>
 </div>
-- 
GitLab