You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 210dd4c
Browse filesBrowse the repository at this point in the historyBrowse files
fix(source-control): leave ambiguous src/branch paths on unknown hosts unchanged
On a host no definition recognizes, `/<path>/src/(branch|tag|commit)/<x>` is
equally an extensionless clone URL of a self-managed GitLab project nested
under groups named `src` and `branch`, so pasting it must not rewrite it.
The page hook now takes `known`, like `parseCommitUrl`. Off a known Forgejo
host, Forgejo answers with the page itself: alone that means no rewrite, and
next to GitLab's `/-/` answer it disagrees, so that stays unchanged too.
AI-assisted; verified with the tests and tools listed above.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
0 commit comments