Skip to content

Commit

Permalink
fix: spurious redirect from ipfs.io/ipns/ipfs.tech to ipfs.tech/ipns/…
Browse files Browse the repository at this point in the history
…ipfs.tech (#173)
  • Loading branch information
mcamou committed Feb 7, 2023
1 parent de7ed2b commit 132e4e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
if (
hostname === 'ipfs.io' &&
!(
pathname.startsWith('/ipns/ipfs.io/') || pathname.startsWith('/ipfs/')
pathname.startsWith('/ipns/') || pathname.startsWith('/ipfs/')
)
) {
window.location.replace(url.replace('//ipfs.io/', '//ipfs.tech/'));
Expand Down

0 comments on commit 132e4e0

Please sign in to comment.