Commit 3504d022 authored by Matthieu Benoist's avatar Matthieu Benoist
Browse files

Merge branch 'link_update' into development

parents cb4a4722 6b13c4fd
Pipeline #16105 passed with stages
in 6 minutes and 12 seconds
......@@ -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>
......
......@@ -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">
......
......@@ -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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment