Skip to content

Commit

Permalink
Use link text formatter to display external link
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejritter committed Dec 18, 2024
1 parent 718a19b commit 323336c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
decade,
displayName,
filterLink,
linkText,
list,
listOf,
nameRole,
Expand Down Expand Up @@ -619,9 +620,10 @@ export default {
},
}),
field: 'collectionobjects_common:publishedRelatedLinkGroupList',
format: listOf(nameRole({
nameFieldName: 'relatedLink',
roleFieldName: 'descriptiveTitle',
format: listOf(linkText({
urlFieldName: 'relatedLink',
textFieldName: 'descriptiveTitle',
type: 'external',
})),
},
},
Expand Down

0 comments on commit 323336c

Please sign in to comment.