metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

[Bug]: "View on explorer" redirects to Etherscan instead of chain-specific explorer

Open suspended opened this issue 1 year ago • 1 comments

Describe the bug

Reopening same issue #35047 as it was not fixed. The problem is in this code block.

https://github.com/MetaMask/metamask-extension/blob/70832c2567b49eea900f5d1aeb025e00ff4c3520/ui/components/multichain/menu-items/view-explorer-menu-item.tsx#L133

Devs are not able to reproduce this issue because they use test networks and the if-else block shows the correct explorer link. However, when using EVM networks like Arbitrum or Base, the explorer link always shows up as Etherscan.io which should only apply for Ethereum mainnet.

When viewing tokens on non-Ethereum networks (e.g., Base), clicking "View on explorer" incorrectly redirects to Etherscan's multichain asset view instead of the appropriate chain-specific block explorer.

Expected behavior

On Base network, "View on explorer" should redirect to: https://basescan.org/address/0x9802c19e24A23Da9822FA6508973a4c33D90fc3d Each network should use its respective block explorer

Screenshots/Recordings

No response

Steps to reproduce

Switch MetaMask to Base network Click the hamburger menu Select "View on explorer" Observe that it opens Etherscan instead of Basescan

Error messages or log output


Detection stage

In production (default)

Version

13.4.3

Build type

None

Browser

Chrome

Operating system

Windows

Hardware wallet

No response

Additional context

No response

Severity

No response

suspended avatar Oct 20 '25 03:10 suspended

well now the link doesn't even exist in the app anymore

cryptolit0 avatar Nov 11 '25 18:11 cryptolit0