From 6b13c4fd5ff54685664bb84b6378330edab382fd Mon Sep 17 00:00:00 2001 From: Matthieu Benoist <mbenoist@ausy-group.com> Date: Fri, 24 Sep 2021 16:15:36 +0200 Subject: [PATCH] Corrects info links dor datasets in various location --- .../components/dataset-info/dataset-info.component.html | 4 ++-- .../components/cms-post-detail/cms-post-detail.component.html | 2 +- .../components/reuse-detail/reuse-detail.component.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/dataset-detail/components/dataset-info/dataset-info.component.html b/src/app/dataset-detail/components/dataset-info/dataset-info.component.html index 2d4743c4..3e2714a5 100644 --- a/src/app/dataset-detail/components/dataset-info/dataset-info.component.html +++ b/src/app/dataset-detail/components/dataset-info/dataset-info.component.html @@ -63,7 +63,7 @@ <img [src]="parent.imageUrl || './assets/img/vignette-collection.png'" alt="" aria-hidden="true" onerror="this.onerror=null;this.src='./assets/img/vignette-collection.png';this.alt='Default image'"> <a class="link-without-decoration" - [routerLink]="['/', AppRoutes.datasets.uri, parent.slug]">{{parent.title}}</a> + [routerLink]="['/' + AppRoutes.datasets.uri + '/' + parent.slug+'/info']">{{parent.title}}</a> </div> </div> </div> @@ -76,7 +76,7 @@ <img [src]="child.imageUrl || './assets/img/vignette-data.png'" alt="" aria-hidden="true" onerror="this.onerror=null;this.src='./assets/img/vignette-data.png';this.alt='Default image'"> <a class="link-without-decoration" - [routerLink]="['/', AppRoutes.datasets.uri, child.slug]">{{child.title}}</a> + [routerLink]="['/' + AppRoutes.datasets.uri + '/' + child.slug+'/info']">{{child.title}}</a> </div> </div> </div> diff --git a/src/app/editorialisation/components/cms-post-detail/cms-post-detail.component.html b/src/app/editorialisation/components/cms-post-detail/cms-post-detail.component.html index 0038305d..044ff027 100644 --- a/src/app/editorialisation/components/cms-post-detail/cms-post-detail.component.html +++ b/src/app/editorialisation/components/cms-post-detail/cms-post-detail.component.html @@ -14,7 +14,7 @@ <div class="relations-section" *ngIf="relations.datasetsMetadata.length > 0"> <span class="relation-type" i18n="@@cmsPostDetail.relatedDatasets">Related datasets</span> <div class="relation" *ngFor="let metadata of relations.datasetsMetadata"> - <a [routerLink]="['/', AppRoutes.datasets.uri, metadata.parentDataset.slug]"> + <a [routerLink]="['/' + AppRoutes.datasets.uri + '/' + metadata.parentDataset.slug+'/info']"> <img [src]="metadata.image.url" alt="" (error)="setBackupImage(metadata)" [ngClass]="{'fit': !metadata.image.url.includes('./assets/img')}"> <div class="relation-info"> diff --git a/src/app/editorialisation/components/reuse-detail/reuse-detail.component.html b/src/app/editorialisation/components/reuse-detail/reuse-detail.component.html index 809dec79..24a2a97d 100644 --- a/src/app/editorialisation/components/reuse-detail/reuse-detail.component.html +++ b/src/app/editorialisation/components/reuse-detail/reuse-detail.component.html @@ -19,7 +19,7 @@ onerror="this.onerror=null;this.src='./assets/img/vignette-data.png';this.alt='Default image'"> <div class="dataset-title"> <a class="link-without-decoration" - [routerLink]="['/', AppRoutes.datasets.uri, dataset.parentDataset.slug]">{{dataset.title}}</a> + [routerLink]="['/' + AppRoutes.datasets.uri + '/' + dataset.parentDataset.slug+'/info']">{{dataset.title}}</a> </div> </div> </div> -- GitLab