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

Explorer: Change URL on block page to have height as id instead of hash #3347

Open
Neotamandua opened this issue Jan 10, 2025 · 3 comments
Open

Comments

@Neotamandua
Copy link
Member

Neotamandua commented Jan 10, 2025

Summary

Right now, the URL of a specific block looks like this:
https://apps.dusk.network/explorer/blocks/block/?id=4b26693aaadc9cd696e778eacea224521dffc8351700a258216510251edaba60

instead of e.g.,
https://apps.dusk.network/explorer/block/27730

It is not possible to jump to a specific block by setting the URL id to a specific height.

Possible Solution (optional)

Change the URL to reflect the block height, not the block hash. This makes the URL more usable and shorter.

@nortonandreev
Copy link
Contributor

Let's discuss with the team and see.

It is not possible to jump to a specific block by setting the URL id to a specific height.

You can use the search bar, it's enough to specify the block height there.

blocks/block/?id=4b26693aaadc9cd696e778eacea224521dffc8351700a258216510251edaba60

I'm not quite sure why the URL is like that. Why not just blocks/4b26693aaadc9cd696e778eacea224521dffc8351700a258216510251edaba60?

cc: @ascartabelli @kieranhall

@ascartabelli
Copy link
Contributor

I'm not quite sure why the URL is like that. Why not just blocks/4b26693aaadc9cd696e778eacea224521dffc8351700a258216510251edaba60?

Not sure either, as this is inherited from the old explorer, but my guess would be to avoid dynamic routes.

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

No branches or pull requests

4 participants