Skip to content

Commit d5edbbf

Browse files
fix: ensure valid block explorer URL for address links
1 parent b205f1d commit d5edbbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dashboard/src/components/custom-contract/contract-header/metadata-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export const MetadataHeader: React.FC<MetadataHeaderProps> = ({
117117
<BadgeLink
118118
key={validBlockExplorer.url}
119119
name={validBlockExplorer.name}
120-
href={`${validBlockExplorer.url}/address/${address}`}
120+
href={`${validBlockExplorer.url.endsWith("/") ? validBlockExplorer.url : `${validBlockExplorer.url}/`}address/${address}`}
121121
/>
122122
))}
123123

0 commit comments

Comments
 (0)