From ed39304ec9a00fc8c5efb0a4a55260ce27fbb14f Mon Sep 17 00:00:00 2001
From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com>
Date: Thu, 1 Apr 2021 11:42:09 +0200
Subject: [PATCH] fix: broken links

---
 src/app/form/form.component.html                          | 8 ++++----
 src/app/structure-join/structure-join.component.ts        | 4 ++--
 .../user-verification/user-verification.component.html    | 4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/app/form/form.component.html b/src/app/form/form.component.html
index 24a36a212..d0d588e89 100644
--- a/src/app/form/form.component.html
+++ b/src/app/form/form.component.html
@@ -1144,7 +1144,7 @@
       <button
         *ngIf="currentPage == nbPagesForm && !profile"
         class="btn-primary validate unique"
-        routerLink="/home"
+        routerLink="/acteurs"
         [routerLinkActive]="'active'"
       >
         Ok
@@ -1152,7 +1152,7 @@
       <button
         *ngIf="currentPage == nbPagesForm && profile"
         class="btn-primary unique"
-        routerLink="/home"
+        routerLink="/acteurs"
         [queryParams]="{ id: createdStructure._id }"
         [state]="{ data: createdStructure }"
       >
@@ -1187,7 +1187,7 @@
     <button
       *ngIf="currentPage == nbPagesForm && !profile"
       class="btn-primary validate unique"
-      routerLink="/home"
+      routerLink="/acteurs"
       [routerLinkActive]="'active'"
     >
       Ok
@@ -1195,7 +1195,7 @@
     <button
       *ngIf="currentPage == nbPagesForm && profile"
       class="btn-primary unique"
-      routerLink="/home"
+      routerLink="/acteurs"
       [queryParams]="{ id: createdStructure._id }"
       [state]="{ data: createdStructure }"
     >
diff --git a/src/app/structure-join/structure-join.component.ts b/src/app/structure-join/structure-join.component.ts
index 59d6ae04f..e4e8d657d 100644
--- a/src/app/structure-join/structure-join.component.ts
+++ b/src/app/structure-join/structure-join.component.ts
@@ -20,10 +20,10 @@ export class StructureJoinComponent implements OnInit {
           .validateStructureJoin(params.get('id'), params.get('userId'), params.get('status') === 'true' ? true : false)
           .subscribe(
             (res) => {
-              this.router.navigateByUrl('/home');
+              this.router.navigateByUrl('/acteurs');
             },
             (err) => {
-              this.router.navigateByUrl('/home');
+              this.router.navigateByUrl('/acteurs');
             }
           );
       }
diff --git a/src/app/user-verification/user-verification.component.html b/src/app/user-verification/user-verification.component.html
index 63417c23d..67b0aa725 100644
--- a/src/app/user-verification/user-verification.component.html
+++ b/src/app/user-verification/user-verification.component.html
@@ -20,7 +20,7 @@
         <button
           *ngIf="verificationSuccess"
           class="btn"
-          routerLink="/home"
+          routerLink="/acteurs"
           [queryParams]="{ id: structure._id }"
           [state]="{ data: structure }"
         >
@@ -50,7 +50,7 @@
       Donnez nous votre avis: vous pouvez participer à l'amélioration de Rés'in en répondant à ces quelques questions
     </div>
     <div fxLayout="row" fxLayoutAlign="center center" fxLayoutGap="24px" [style.margin-top]="'50px'">
-      <button class="button" routerLink="/home">Je passe mon tour</button>
+      <button class="button" routerLink="/acteurs">Je passe mon tour</button>
       <a
         *ngIf="structure"
         target="_blank"
-- 
GitLab