simonw / datasette-lite

Datasette running in your browser using WebAssembly and Pyodide
https://lite.datasette.io
Apache License 2.0
334 stars 29 forks source link

Support hand-editing the URLs #18

Closed simonw closed 2 years ago

simonw commented 2 years ago

If I'm on https://simonw.github.io/datasette-lite/#/content/pypi_versions?_sort=package and I hand edit the URL to https://simonw.github.io/datasette-lite/#/content/pypi_versions?_sort=package&_facet=package the content of the page should update.

I want this so I can e.g. add facets that aren't visible despite the cog menu not working, refs:

simonw commented 2 years ago

I think I need to listen to the hashchange event: https://developer.mozilla.org/en-US/docs/Web/API/Window/hashchange_event