From d6ae4ccdfdfc05e7adc98f853634f879d52648b8 Mon Sep 17 00:00:00 2001 From: Jeremie BRISON <ext.sopra.jbrison@grandlyon.com> Date: Tue, 9 Mar 2021 15:00:41 +0100 Subject: [PATCH] fix(route) : fix routing params with id --- src/app/form/form.component.html | 2 ++ .../user-verification/user-verification.component.html | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app/form/form.component.html b/src/app/form/form.component.html index aa2263591..46b374e87 100644 --- a/src/app/form/form.component.html +++ b/src/app/form/form.component.html @@ -1151,6 +1151,7 @@ *ngIf="currentPage == nbPagesForm && profile" class="btn-primary unique" routerLink="/home" + [queryParams]="{ id: createdStructure._id }" [state]="{ data: createdStructure }" > Voir ma structure @@ -1193,6 +1194,7 @@ *ngIf="currentPage == nbPagesForm && profile" class="btn-primary unique" routerLink="/home" + [queryParams]="{ id: createdStructure._id }" [state]="{ data: createdStructure }" > Voir ma structure diff --git a/src/app/user-verification/user-verification.component.html b/src/app/user-verification/user-verification.component.html index 628bb8efe..c1e11207d 100644 --- a/src/app/user-verification/user-verification.component.html +++ b/src/app/user-verification/user-verification.component.html @@ -37,7 +37,13 @@ ></div> </div> <div class="btnSection" fxLayout="row" fxLayoutAlign="space-around center"> - <button *ngIf="structure && verificationSuccess" class="btn" routerLink="/home" [state]="{ data: structure }"> + <button + *ngIf="structure && verificationSuccess" + class="btn" + routerLink="/home" + [queryParams]="{ id: structure._id }" + [state]="{ data: structure }" + > Voir ma structure </button> </div> -- GitLab