Skip to content

Commit de7db7f

Browse files
now the links on the protein page for Other Forms are now linking to the correct page
1 parent 59acaca commit de7db7f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

projects/pathway-browser/src/app/details/tabs/description-tab/description-tab.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
<div class="label-container">{{ item.key }}</div>
164164
<div class="composition-container">
165165
@for (pe of item.value; let i = $index; track pe.dbId) {
166-
<a [href]="`${CONTENT_DETAIL}/${pe.stId}`">{{ pe.name[0] }}</a>
166+
<a [routerLink]="'/content/detail/' + pe.stId">{{ pe.name[0] }}</a>
167167
<!-- Add separator except for last item -->
168168
@if (i < item.value.length - 1) {
169169
<span class="margin-right">,</span>
@@ -183,7 +183,7 @@
183183
<div class="label-container">{{ item.key }}</div>
184184
<div class="composition-container">
185185
@for (pe of item.value; let i = $index; track pe.dbId) {
186-
<a [href]="`${CONTENT_DETAIL}/${pe.stId}`">{{ pe.name[0] }}</a>
186+
<a [routerLink]="'/content/detail/' + pe.stId">{{ pe.name[0] }}</a>
187187
<!-- Add separator except for last item -->
188188
@if (i < item.value.length - 1) {
189189
<span class="margin-right">,</span>

0 commit comments

Comments
 (0)