Skip to content

Fix preview links for docset index.md pages - #292

Open
reakaleek wants to merge 1 commit into
mainfrom
fix/index-preview-url
Open

Fix preview links for docset index.md pages#292
reakaleek wants to merge 1 commit into
mainfrom
fix/index-preview-url

Conversation

@reakaleek

Copy link
Copy Markdown
Member

Why

  • Preview comments link a docset index.md to a URL that ends in /index, but the page lives at the preview root
  • Reported on elastic/docs-eng-team#770

What

  • Strip a leftover index.md after the docs-root prefix is removed, not only nested /index.md paths
  • Link to the preview root when no page path remains after that strip
  • Apply the same fix in both Codex preview and docs-v3 deploy preview comments

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@reakaleek
reakaleek requested a review from a team as a code owner August 19, 2026 18:55
@reakaleek
reakaleek requested a review from theletterf August 19, 2026 18:55
@reakaleek reakaleek added the fix label Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants