Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/ENVS.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ Settings for meta tags, OG tags and SEO
| instance_url | `string` | URL template for NFT instance | - | - | `https://opensea.io/assets/ethereum/{hash}/{id}` |
| logo_url | `string` | URL of marketplace logo | Required | - | `https://opensea.io/static/images/logos/opensea-logo.svg` |

*Note* URL templates should contain placeholders of NFT hash (`{hash}`) and NFT id (`{id}`). This placeholders will be substituted with particular values for every collection or instance.
*Note* URL templates should contain placeholders for the NFT hash (`{hash}` or `{hash_lowercase}`) and NFT ID (`{id}` or `{id_lowercase}`). These placeholders will be replaced with specific values or their lowercase equivalents for each collection or instance.

 

Expand Down
6 changes: 5 additions & 1 deletion ui/token/TokenNftMarketplaces.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ const TokenNftMarketplaces = ({ hash, id, isLoading, appActionData, source }: Pr
if (!hrefTemplate) {
return null;
}
const href = hrefTemplate.replace('{id}', id || '').replace('{hash}', hash || '');
const href = hrefTemplate
.replace('{id}', id || '')
.replace('{id_lowercase}', id?.toLowerCase() || '')
.replace('{hash}', hash || '')
.replace('{hash_lowercase}', hash?.toLowerCase() || '');

return {
href,
Expand Down
Loading