Describe the bug
On the inspect view there's a button labled with "View on IPFS Gateway", which still points (in my case) to 127.0.0.1/ipfs/<CID> instead of <CID>.ipfs.localhost.
Screenshots

Desktop (please complete the following information):
@lidel and/or @rafaelramalho19 -- can you please have a look? Thank you!
I was able to replicate it 👍
Thank you for reporting this Ruben, I will check it out.
@rafaelramalho19 After additional analysis I am afraid we need to revert #1559 – it won't work in offline contexts and private swarms (without ipfs-companionloading from public gateway will hang forever and then timeout)
We also can't just blindly swap 127.0.0.1 with localhost because localhost subdomains are not guaranteed to be enabled and work everywhere (https://github.com/ipfs/go-ipfs/issues/7527)
Additional heuristic should be added in the place where gatewayUrl is read from node's config:
127.0.0.1:port<knowncid>.ipfs.localhost:port (eg. empty unixfs dir)127.0.0.1:port with localhost:port in "View on IPFS Gateway" 0.0.0.0, then we replace it with window.location.hostname or replace both host and port with window.location.hostHow does that sound?