telosnetwork / open-block-explorer

The Open Block Explorer (OBE) is the first open source block explorer that is designed to support all AntelopeIO-based blockchains.
https://explorer.telos.net
Apache License 2.0
27 stars 24 forks source link

Clean up network query parameters for single chain mode #767

Closed poplexity closed 1 year ago

poplexity commented 1 year ago

When in single chain mode with dropdown disabled, we should not need to be forcing any query parameters since they are ignored... in fact we should probably remove them if they are there (even if they are wrong)

In context of #766 when I first loaded a deploy preview that was in single chain mode, I picked a different chain than the env vars were set to and the url showed one network but the page data loaded showed another.

This deploy preview is set to Telos testnet, and the page properly renders for Telos testnet, yet the URL shows network=eos.

https://deploy-preview-765--obe-testnet.netlify.app/network?network=eos