Brown-University-Library / disa_dj_project

MIT License
2 stars 3 forks source link

Use query (not hash) to record current form state #157

Closed prashleigh closed 10 months ago

prashleigh commented 1 year ago

Instead of URLs such as /<SOURCE ID>/#/<RECORD ID>/<REFERENT ID> we now have: /<SOURCE ID>/?record=<RECORD ID>&referent=<REFERENT ID>

Why? Because hypothes.is doesn't store hash values, but it does store query (search) params. Therefore, Referents and Records become reference-able and available for annotation in Hypothes.is

prashleigh commented 10 months ago

Withdrawn PR while changes are made — will update code to parse old format of URL as well as new (so that we don't break links)