Fix #185: non-image links to blob view #186
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!186
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-185"
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?
Amends the #183 (issue #182) "others → raw" trade-off (recorded in 12_web_ui.md Decisions, law 12).
Rule now: images → raw bytes (unchanged); EVERY other relative link → in-app blob view at same ref (raw one click away via the blob raw pill). Directories: trailing slash (or repo-root resolution) is the cheap render-time signal → tree view; a slash-less directory link 404s honestly on the blob route. No new deps.
Tests:
node --test web/test/unit/*.test.js379/379 green (matrix updated: blob-view, tree-view, LICENSE-style, verbatim-suffix cases). Browser proof on real Chromium via CDP (:9222) against a scratch-built server: LICENSE link renders/demo/hello/blob/main/LICENSEand click lands on the blob view (content + raw pill shown); guide.md → blob;docs/→ tree;#anchor/absolute untouched; image inline via?raw(naturalWidth 1); zero console/page errors in dark AND light.