Visiting `/Project-1/archive/PartyA/mdl` (no trailing slash) errored with `Unrecognized table URL` because tableNameFromUrl only matched `…/<rowsdir>/table.html`. The cascade declares `default_tool: tables` at `archive/<party>/mdl`, so the server serves the tables HTML at the bare directory URL — a shape the client didn't recognize. Two coordinated fixes: - shared/zddc-source.js `pathToDir`: was over-eagerly stripping the last segment when the URL didn't end in `/`. Now checks whether the last segment contains a dot — file URLs strip to parent (original behavior preserved), bare-directory URLs append the missing slash. Only call site is detectServerRoot, so blast radius is contained. - tables/js/context.js `tableNameFromUrl` + `rowEditUrl`: accept both legacy `…/<rowsdir>/table.html` and the new bare-directory shape. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app.js | ||
| clipboard.js | ||
| context.js | ||
| editor.js | ||
| filters.js | ||
| main.js | ||
| mode.js | ||
| render.js | ||
| save.js | ||
| sort.js | ||
| undo.js | ||
| util.js | ||