Skip to content

fix(docs): broken numeric-prefix links in Client + Connector#6

Open
zackkatz wants to merge 1 commit intomainfrom
fix/broken-numeric-prefix-links
Open

fix(docs): broken numeric-prefix links in Client + Connector#6
zackkatz wants to merge 1 commit intomainfrom
fix/broken-numeric-prefix-links

Conversation

@zackkatz
Copy link
Copy Markdown
Contributor

@zackkatz zackkatz commented May 8, 2026

Reported via the broken docs.trustedlogin.com/Client/02-installation link from the Client SDK intro page.

Root cause

Three intra-doc links pointed at the literal numeric-prefixed filename (e.g. ./02-installation) but Docusaurus auto-strips the 0X- prefix from the URL slug at build time. Published URLs are /Client/installation, /Client/intro, etc. — the literal-prefix references 404 in production.

Fix

Appended .md to each link target. Docusaurus resolves .md links through its file → slug graph regardless of prefix-stripping, so the links survive future renames and slug-config changes.

File Old New
docs/Client/01-intro.md:27 ./02-installation ./02-installation.md
docs/Client/01-intro.md:28 ./integration-prompt ./integration-prompt.md (consistency)
docs/Client/integration-prompt.md:17 four sibling refs without .md all four gained .md
docs/Connector/help-scout.md:29 ../01-intro ./01-intro.md

The Connector help-scout one was doubly wrong: ../ went up to docs/ where no 01-intro lives, AND was missing the extension. Fixed to ./01-intro.md (same dir) so it resolves to the Connector intro the surrounding copy actually refers to.

Test plan

  • CI / Docusaurus build runs broken-link checker green
  • After deploy: visit /Client/intro, click "Installation guide" → lands on /Client/installation
  • Visit /Connector/help-scout, click "do that first!" → lands on /Connector/intro

Three intra-doc links pointed at the literal numeric-prefixed
filename (e.g. `./02-installation`) but Docusaurus auto-strips
the `0X-` prefix from the URL slug at build time, so the
published URLs are `/Client/installation`, `/Client/intro`, etc.
The literal-prefix links 404'd in production.

Fixed by appending `.md` to each link target. Docusaurus resolves
`.md` links through its file → slug graph regardless of prefix-
stripping, so the links survive future renames and slug-config
changes.

  - docs/Client/01-intro.md:27 — `./02-installation` → `./02-installation.md`
    Plus an adjacent `./integration-prompt` → `./integration-prompt.md`
    for consistency.

  - docs/Client/integration-prompt.md:17 — four sibling refs:
    `./02-installation`, `./namespacing/strauss`,
    `./configuration`, `./namespacing/merging-into-existing-composer`
    all gained `.md`.

  - docs/Connector/help-scout.md:29 — `../01-intro` was doubly
    wrong: the path went up one level (to `docs/`) where no
    `01-intro` exists, AND was missing the extension. Fixed to
    `./01-intro.md`, which resolves to `docs/Connector/01-intro.md`
    — the Connector intro page the surrounding copy actually
    refers to.

Reported via the broken
docs.trustedlogin.com/Client/02-installation link surfaced from
the Client SDK intro page.
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