expedition icon indicating copy to clipboard operation
expedition copied to clipboard

Linking / url API overhaul

Open BelfordZ opened this issue 4 years ago • 0 comments

Is your feature request related to a problem? Please describe. The current linking scheme has a mixed use of url params as well as path-encoded vars. Specifically, you can set the network by attaching a param at the end ?network=mainnet. Further, you can combine this with block by hash, by number, etcetc.

Describe the solution you'd like The urls should be constructed as follows:

/:network/:contentTypeName/:contentTypeQueryParam(s)

No nesting at the moment.

Describe alternatives you've considered

future considerations:

  • url to get a block with given transaction
  • url to get a block/tx by hash from any network

Additional context

Deep linking api is important for a lot of users. however, with this change, savings pre-renderings becomes a lot easier, and we can likely improve our SEO tremendously by doing this.

BelfordZ avatar Aug 12 '20 23:08 BelfordZ