Skip to content

fix(docs): repair markdown links left pointing at a tilde path - #224

Merged
saagpatel merged 1 commit into
masterfrom
codex/fix/tilde-link-targets
Aug 22, 2026
Merged

fix(docs): repair markdown links left pointing at a tilde path#224
saagpatel merged 1 commit into
masterfrom
codex/fix/tilde-link-targets

Conversation

@saagpatel

Copy link
Copy Markdown
Owner

Repairs Markdown links that the home-path redaction left pointing at a tilde.

The redaction rewrote absolute link targets like
/Users/<user>/Projects/<repo>/src/foo.rs into ~/Projects/<repo>/src/foo.rs.
That is correct for prose, and wrong here: no Markdown renderer expands a
tilde
. Each of those resolved as a path relative to the containing file — so a
link in docs/plans/ resolved to docs/plans/~/Projects/... and opened nothing.

The links read correctly in the source and were dead everywhere they were
actually followed. This was first caught by review on a different repository's
redaction pull request; this is the same defect found by sweeping for the
pattern across everything the redaction touched.

Targets are repo-relative now. Every rewritten target was checked to exist on
disk before being changed, and line anchors (#L123) are preserved.

Deliberately not rewritten (AssistSupport only): two links point at
src/types/index.ts and src/components/FollowUps/FollowUpsTab.tsx, neither of
which exists in this repository any more. Rewriting them would turn a visibly
odd dead link into an ordinary-looking dead one. They need a decision about the
document, not a path substitution.

Also fixed (AssistSupport only): one link that was already broken before the
redaction — the roadmap was linked as docs/plans/product-improvements-roadmap.md
from a file already inside docs/plans/, so it resolved to
docs/plans/docs/plans/....

Documentation only. No source, configuration, or test file is touched.

The home-path redaction rewrote absolute link targets to ~/... , but no markdown
renderer expands a tilde. Every one of those resolved as a path relative to the
containing file and opened nothing: the link reads correctly in the source and
is dead everywhere it is actually followed.

The targets are repo-relative now, and each rewritten one was checked to exist
on disk before being changed. Line anchors are preserved.

Two links are deliberately left as they are. They point at src/types/index.ts
and src/components/FollowUps/FollowUpsTab.tsx, neither of which exists in this
repository any more, so rewriting them would turn a visibly odd dead link into
an ordinary-looking dead one. They need a decision about the document, not a
path substitution.

Also fixes one link in the same file that was already broken before this: the
roadmap was linked as docs/plans/product-improvements-roadmap.md from a file
inside docs/plans/, so it resolved to docs/plans/docs/plans/... .

Verified: 80 of 82 non-external links in the changed files now resolve on disk;
the 2 that do not are the deliberate pair above.
@saagpatel
saagpatel merged commit be14a74 into master Aug 22, 2026
19 checks passed
@saagpatel
saagpatel deleted the codex/fix/tilde-link-targets branch August 22, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant