Closed meowcat closed 1 year ago
I have proposed a fix in PR #15. To pass the correct base url to the JS, I added this: https://github.com/datasette/datasette-write-ui/blob/f9c38a3ea23c14415fa0a83ca242465b2528ac55/datasette_write_ui/__init__.py#L22-L25 which is then called in the JS code where needed. Now I don't know if this is a great way to do it, you probably know better :)
This should be fixed now, and the fix is released in 0.0.1a8
- re-open this issue if it doesn't work for you!
Running datasette with
--setting base_url /my-instance/
, the "insert row" button doesn't work and the GET requests for JS, CSS go tohttps://my-server/-/static-plugins/datasette_write_ui/table.min.js
instead ofhttps://my-server/my-instance/-/static-plugins/datasette_write_ui/table.min.js