Fix #189: breadcrumb segment links carry ref #192
No reviewers
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub!192
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-189"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tree Breadcrumb built intermediate hrefs as
/{full}/tree/{subpath}, dropping the display ref, so nested crumbs (e.g. docs in docs/go) missed the branch while root worked. Now passesrev={t().ref}and renders/{full}/tree/{shortRef(rev)}/{subpath}, mirroring Blob.jsx. Extends the #29 breadcrumb-head regression test with a Tree rev case.Proof:
node --test web/test/unit/*.test.js387/387 green (with web/node_modules present); headless-Chrome CDP drive of a scratch server on a seeded nested repo: tree docs/go shows root->/u/crumbtest, docs->/u/crumbtest/tree/main/docs, current go strong; click-through lands on /tree/main/docs with rows [go]; blob crumbs unchanged; zero console errors. No new deps; styling untouched (dark+light unaffected). No doc change needed: docs/go/12_web_ui.md already states the breadcrumb carries ref+path.Tree Breadcrumb built intermediate hrefs as /{full}/tree/{subpath}, dropping the display ref, so nested crumbs (e.g. docs in docs/go) missed the branch and did not resolve. Pass rev={t().ref} at the call site and render hrefs as /{full}/tree/{shortRef(rev)}/{subpath}, mirroring Blob.jsx. Extends the #29 breadcrumb-head regression test.