ifcurl/forgejo/tests
Bruno Postle 889645c2b2 forgejo: fix missing View in 3D button on commit file view pages
On /src/commit/{hash}/file.ifc pages, breadcrumb anchors match the
a[href*="/src/commit/"] selector before the Permalink anchor, returning
a directory URL that parseCommitHref rejects (no file path). Fix by
trying window.location.pathname first — it parses correctly when already
on a commit file URL — and only falling back to a Permalink anchor search
for branch/tag file views. Add a regression test for directory-level
commit hrefs returning null.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-27 20:31:43 +01:00
..
viewer-url.test.js forgejo: add JS unit tests, extract pure functions into viewer-util.js 2026-04-27 20:24:58 +01:00
viewer-util.test.js forgejo: fix missing View in 3D button on commit file view pages 2026-04-27 20:31:43 +01:00