Skip to content

Commit

Permalink
* fix: i link in modulistica devono far vedere la remoteUrl e non il …
Browse files Browse the repository at this point in the history
…link
  • Loading branch information
mamico committed Sep 19, 2023
1 parent 9e8579b commit c575c0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@
### Fix
- ...
-->

Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const Downloads = ({ item, titleDoc }) => {
</React.Fragment>
) : (
<UniversalLink
href={flattenToAppURL(item['@id'])}
href={item.remoteUrl || flattenToAppURL(item['@id'])}
title={item.title}
className="modulistica-link"
>
Expand All @@ -59,7 +59,7 @@ const DocRow = ({ doc }) => {
})}
>
<div id={`title-${doc.id}`} className="title">
<UniversalLink href={flattenToAppURL(doc['@id'])}>
<UniversalLink href={doc.remoteUrl || flattenToAppURL(doc['@id'])}>
{doc.title}
</UniversalLink>
{doc?.description && (
Expand Down

0 comments on commit c575c0d

Please sign in to comment.