Skip to content

Commit

Permalink
Update UniversalLink.jsx
Browse files Browse the repository at this point in the history
Co-authored-by: Alin Voinea <contact@avoinea.com>
  • Loading branch information
nileshgulia1 and avoinea authored Dec 19, 2024
1 parent 92a8728 commit 1358d69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const UniversalLink = ({
}
}

if (isInternalURL(url) && download) {
if (download && isInternalURL(url)) {
url = url.includes('/@@download/file') ? url : `${url}/@@download/file`;
}

Expand Down

0 comments on commit 1358d69

Please sign in to comment.