Skip to content

fix: redirect ipfs.tech/ipfs → ipfs.io/ipfs#146

Merged
lidel merged 1 commit intomainfrom
fix/redirect-gateway-paths-to-io
Jul 29, 2022
Merged

fix: redirect ipfs.tech/ipfs → ipfs.io/ipfs#146
lidel merged 1 commit intomainfrom
fix/redirect-gateway-paths-to-io

Conversation

@lidel
Copy link
Copy Markdown
Member

@lidel lidel commented Jul 29, 2022

Follow-up for #133

Quick hack to fixup folks using ipfs.tech as a gateway for some reason.

As long the user has JS, location.replace() will replace the URL in user's browser history with .io one.
If there is no JS, a plain text message is displayed pointing the user at the list of public gateways.

DEMO

https://ipfs.tech/ipfs/QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR

Quick hack to fixup folks using ipfs.tech as a gateway for some reson.
@lidel lidel merged commit cd68100 into main Jul 29, 2022
@lidel lidel deleted the fix/redirect-gateway-paths-to-io branch July 29, 2022 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant