etalab/DVF-app

Direct Link passing parameters in the URL

Opened this issue · 2 comments

Is it possible to open the app https://app.dvf.etalab.gouv.fr/ with a direct link bypassing the scroll menu ?

The URL

https://app.dvf.etalab.gouv.fr/?p1=v1&p2=v2&p3=v3&p4=v4&p5=v5

with the needed parameters (p1,p2,p3,p4,p5)

p1 : Département
p2 : Commune
p3 : Section cadastrale
p4 : Parcelle cadastrale
p5 : Date de la mutation (already preloaded in a default value)

Thank you

Here's a repo which may help you regarding your request : https://github.com/Pierreyvon/API_DVF

I propose solving this client-side, by using hashbang URLs. It would also be possible to use virtual client-side routing using the browser history API, but I think this would be confusing to the end user. The implementation I've come up with supports both /#!/180701-230630/75101/AU/0004 and /#!/75101000AU0004, but I'd love to have feedback on either the URL structure or the PR