Fixed by https://tangled.org/jonmsterling.com/ocaml-forester/commit/159c8484463dbda95e69813285266c0b4c51dd14 This was because window.sourcePath was not properly set. It now works by emulating a click on the edit button, which avoids some code duplication and also keeps in sync with HTMX swaps. (I don't remember if sourcePath was properly updated on swaps)
Fixed by https://tangled.org/jonmsterling.com/ocaml-forester/commit/159c8484463dbda95e69813285266c0b4c51dd14
This was because
window.sourcePathwas not properly set. It now works by emulating a click on the edit button, which avoids some code duplication and also keeps in sync with HTMX swaps. (I don't remember ifsourcePathwas properly updated on swaps)