Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve URL when visiting IPFS or ENS pages #9353

Open
danfinlay opened this issue Sep 4, 2020 · 2 comments
Open

Preserve URL when visiting IPFS or ENS pages #9353

danfinlay opened this issue Sep 4, 2020 · 2 comments

Comments

@danfinlay
Copy link
Contributor

Chromium has introduced the new protocol prefix handlers

This is an API that allows a webextension to handle protocols with dweb prefixes like ipfs, ethereum, ssb, and more!

You can learn to use them here.

@Gudahtt
Copy link
Member

Gudahtt commented Apr 13, 2021

Related: #7740

As discussed in this comment, we may be able to do this with the proxy permission as well (that was how the other IPFS extension we analyzed implemented it IIRC).

@danfinlay danfinlay changed the title Preserve URL when visiting IPFS pages Preserve URL when visiting IPFS or ENS pages Nov 1, 2021
@gerbz
Copy link

gerbz commented Aug 24, 2022

@danfinlay If you don't want to keep track of which browsers support which protocols (ipfs://, ipns://, ens://, etc.), there's an interim solution using INPS and the same public gateway already supported by MetaMask.

MM current behavior redirects like this:
vitalik.eth -> https://bafybeibc7nsbhktzjvplpi4qmzk7kd22yqol3v4thpbhp5yzfspcc56hsi.ipfs.dweb.link/

However this also works while preserving the ENS domain somewhat:
vitalik.eth -> https://vitalik-eth.ipns.dweb.link

Brave browser handles it this way already for ipns://vitalik.eth when IPFS is set to use a public gateway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants