Skip to content

fix(docs): use absolute path for PostHog Code link in MCP docs#16936

Merged
andyvan-ph merged 2 commits into
masterfrom
posthog-code/fix-mcp-docs-posthog-code-link
May 20, 2026
Merged

fix(docs): use absolute path for PostHog Code link in MCP docs#16936
andyvan-ph merged 2 commits into
masterfrom
posthog-code/fix-mcp-docs-posthog-code-link

Conversation

@andyvan-ph
Copy link
Copy Markdown
Contributor

Changes

The PostHog Code entry in contents/docs/model-context-protocol/_snippets/mcp-clients.tsx used a relative path (docs/posthog-code) while every other entry in the same list uses an absolute path (/docs/...).

When rendered on /docs/model-context-protocol, the browser resolves the relative URL against the current path, producing /docs/docs/posthog-code — which 404s. Switching to /docs/posthog-code makes the link match the rest of the list and point at the actual docs page.

Checklist

  • I've read the docs and/or content style guides.
  • Words are spelled using American English
  • Use relative URLs for internal links
  • I've checked the pages added or changed in the Vercel preview build
  • If I moved a page, I added a redirect in vercel.json

Created with PostHog Code

The PostHog Code entry in the MCP clients list used a relative path
(`docs/posthog-code`) while every other entry uses an absolute path
(`/docs/...`). On `/docs/model-context-protocol` the browser resolved
it to `/docs/docs/posthog-code`, which 404s.

Generated-By: PostHog Code
Task-Id: 2c7117d8-0c71-4c13-99cc-2263339c6da3
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview May 20, 2026 04:09PM

@andyvan-ph andyvan-ph marked this pull request as ready for review May 20, 2026 15:53
@andyvan-ph andyvan-ph requested a review from a team May 20, 2026 15:53
Copy link
Copy Markdown
Member

@edwinyjlim edwinyjlim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖

@andyvan-ph andyvan-ph enabled auto-merge (squash) May 20, 2026 16:04
@andyvan-ph andyvan-ph merged commit 22c3ca2 into master May 20, 2026
20 checks passed
@andyvan-ph andyvan-ph deleted the posthog-code/fix-mcp-docs-posthog-code-link branch May 20, 2026 16:10
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.

2 participants