Skip to content

Conversation

@AugustoL
Copy link
Collaborator

Description

This pull request updates the routing strategy to use HashRouter exclusively, improving compatibility with IPFS and ENS gateways, and refines subdomain handling logic to avoid unnecessary redirects for ENS-based domains. It also updates documentation to clarify the new routing approach.

Routing changes for IPFS/ENS compatibility:

  • All routing now uses HashRouter instead of conditionally switching between BrowserRouter and HashRouter, simplifying the code and ensuring compatibility with decentralized gateways. (src/App.tsx, [1] [2]
  • The README has been updated to clarify that HashRouter is used for IPFS/ENS compatibility. (README.md, README.mdL249-R249)

Subdomain handling improvements:

  • The subdomain utility now skips subdomain processing for ENS gateways (.eth.link, .eth.limo), preventing unnecessary redirects and ensuring correct behavior when accessed via ENS. (src/utils/subdomainUtils.ts, src/utils/subdomainUtils.tsR21-R25)

Code cleanup:

  • Removed legacy code for GitHub Pages detection and basename calculation, as it is no longer needed with the exclusive use of HashRouter. (src/App.tsx, [1] [2]

Fixes before v1.0.0-a release
Prevent false subdomain detection on openscan.eth.link and
openscan.eth.limo which was causing unwanted redirects to the
base domain (eth.link/eth.limo).
Switch from conditional BrowserRouter/HashRouter to HashRouter
everywhere. This fixes the refresh issue on IPFS gateways where
deep URLs would fail to resolve since IPFS cannot handle
client-side routing paths.
fix: IPFS/ENS routing compatibility
@AugustoL AugustoL merged commit 7d698ea into dev Jan 16, 2026
5 of 7 checks passed
@github-actions
Copy link

🚀 Preview: https://pr-152--openscan.netlify.app
📝 Commit: 4de334dc38c49473a3d94619a8af7700aff23a95

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.

2 participants