Skip to content

docs: fix broken /v1 endpoint links in tutorials & reference - #178

Merged
johnymontana merged 1 commit into
neo4j-labs:mainfrom
rafaljanicki:fix/docs-broken-v1-links
Aug 11, 2026
Merged

docs: fix broken /v1 endpoint links in tutorials & reference#178
johnymontana merged 1 commit into
neo4j-labs:mainfrom
rafaljanicki:fix/docs-broken-v1-links

Conversation

@rafaljanicki

Copy link
Copy Markdown
Contributor

Problem

Reported by Erik Bijl (neo4j-labs/project-nams#192): the link https://memory.neo4jlabs.com/v1 renders as a clickable 404 on the published tutorials (e.g. first-agent-memory-typescript and hosted-quickstart-typescript).

Root cause: AsciiDoc auto-links any bare URL — even inside backtick monospace — into an <a class="bare">. Visiting the bare https://memory.neo4jlabs.com/v1 returns 404, so every inline mention became a broken clickable link. This affected 9 spots across 9 pages, not just the two tutorials Erik happened to notice.

Why not just strip /v1 everywhere

The API genuinely lives under /v1:

  • https://memory.neo4jlabs.com/v1/conversations → 401 (route exists), but https://memory.neo4jlabs.com/conversations → 404.
  • The TS SDK's pickTransport selects REST mode only when the endpoint matches /\/v\d+\b/ — so /v1 in the documented MEMORY_ENDPOINT default and SDK endpoint values is load-bearing.

Blanket-replacing /v1 with / would make the reference docs factually wrong. So the fix stops the inline URLs from linking, rather than removing /v1.

Changes

  • Tutorial prose pointers ("hosted service at …", "API key for …") now link to https://memory.neo4jlabs.com/ (a valid landing page, 200).
  • Reference/how-to mentions where /v1 is the documented API base keep /v1 via the +…+ passthrough, so they render as non-clickable monospace (same idiom already used in reference/deployment.adoc).
  • Code-block and curl values under [source] are unchanged — AsciiDoc never auto-links those, and they must keep /v1.

Verified: no backtick-wrapped bare /v1 remains linkable; the 17 code-block/curl /v1 values are preserved.

Fixes neo4j-labs/project-nams#192

The bare production URL https://memory.neo4jlabs.com/v1 404s when visited in a
browser, but AsciiDoc auto-links any bare URL — even inside backtick monospace —
into a clickable `<a>`. Every inline `https://memory.neo4jlabs.com/v1` in the
docs therefore rendered as a clickable 404 (reported on the TypeScript
tutorials). The API genuinely lives under /v1 (the SDK selects REST transport
only when the endpoint matches /v\d+/), so /v1 must stay in the documented base
URL and SDK endpoint values — the fix is to stop the inline mentions from
linking, not to strip /v1.

- Tutorial prose pointers ("hosted service at …", "API key for …") now link to
  https://memory.neo4jlabs.com/ (a valid landing page).
- Reference/how-to mentions where /v1 is the documented API base keep /v1 via
  the `+...+` passthrough so they render as non-clickable monospace.
- Code-block and curl values under [source] are unchanged (never auto-linked).

Fixes neo4j-labs/project-nams#192

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

@rafaljanicki is attempting to deploy a commit to the lyonwj's projects Team on Vercel.

A member of the Team first needs to authorize it.

@codecov-commenter

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@rafaljanicki

Copy link
Copy Markdown
Contributor Author

@johnymontana

@johnymontana
johnymontana merged commit 231d60e into neo4j-labs:main Aug 11, 2026
18 of 19 checks passed
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.

3 participants