ensure the rel="noopener" attribute is only set when target="_blank" and remove "noreferrer" in all cases

This commit is contained in:
Art Lowel
2023-05-02 18:11:57 +02:00
parent 27d3c58d00
commit 5aaa4ef371
24 changed files with 35 additions and 35 deletions

View File

@@ -1,4 +1,4 @@
<a *ngIf="linkType != linkTypes.None" [target]="(linkType == linkTypes.ExternalLink) ? '_blank' : '_self'" rel="noopener noreferrer" [routerLink]="['/collections/' + object.id]" class="lead">
<a *ngIf="linkType != linkTypes.None" [target]="(linkType == linkTypes.ExternalLink) ? '_blank' : '_self'" [attr.rel]="(linkType == linkTypes.ExternalLink) ? 'noopener' : null" [routerLink]="['/collections/' + object.id]" class="lead">
{{object.name}}
</a>
<span *ngIf="linkType == linkTypes.None" class="lead">