Skip to content

docs: fix malformed external URLs missing platform subdomain - #2880

Merged
marcel-rbro merged 1 commit into
masterfrom
docs/fix-malformed-external-urls
Aug 18, 2026
Merged

docs: fix malformed external URLs missing platform subdomain#2880
marcel-rbro merged 1 commit into
masterfrom
docs/fix-malformed-external-urls

Conversation

@marcel-rbro

Copy link
Copy Markdown
Contributor

What this fixes

The IA v3 URL migration stripped platform from external hostnames as well as internal paths, corrupting 21 links across 9 files:

https://platform.openai.com/...  →  https://.openai.com/...   (20 occurrences)
https://platform.claude.com/...  →  https://.claude.com/...   (1 occurrence)

These are hard-dead rather than redirects - .openai.com is not a valid hostname, so they fail at DNS resolution instead of returning an HTTP status. The build's broken-link check only validates internal links, so CI stayed green and nothing surfaced them.

Most sit in prerequisites sections, where a reader following the link to get an API key hits a browser error.

Approach

This is a pure inverse of the corruption - restore the subdomain, change nothing else - so it stays trivially reviewable.

File Fixed
sources/platform/integrations/ai/openai/openai-assistants.md 7
sources/platform/integrations/ai/openai/chatgpt.md 3
sources/platform/integrations/ai/langflow.md 2
sources/platform/integrations/ai/mastra.md 2
sources/platform/integrations/ai/agno.md 1
sources/platform/integrations/ai/crewai.md 1
sources/platform/integrations/ai/haystack.md 1
sources/platform/integrations/ai/langgraph.md 1
sources/platform/integrations/ai/openai/openai-agents.md 1

langchain.md carried a 22nd occurrence, already fixed by #2683.

Verification

  • Zero malformed URLs remain: git grep -n "https://\.\w" -- 'sources/**/*.md' 'sources/**/*.mdx' returns nothing.
  • No platform.platform. double-prefixes.
  • All 10 distinct targets resolve. Two return 403 to curl (/account/api-keys, /docs/api-reference/vector-stores) - that is OpenAI blocking non-browser clients, not a dead page.
  • Vale and markdownlint clean on all 9 files.

Deliberately out of scope

Two things worth separate follow-up rather than mixing into a link fix:

  1. 8 of the OpenAI /docs/... links now 301 to developers.openai.com/api/docs/.... Correct after this fix, but one redirect hop from canonical.
  2. /docs/assistants/overview redirects to /docs/assistants/migration - OpenAI is deprecating the Assistants API. That is a content problem for openai-assistants.md (7 of the 21 links live on that page), not a link problem.

Suggested guard

Nothing in CI checks external links today, which is why a mechanical find/replace could break 22 of them silently. Worth considering an external-link check, at minimum a hostname sanity check for https://.

The IA v3 URL migration stripped "platform" from external hostnames as
well as internal paths, turning platform.openai.com into .openai.com and
platform.claude.com into .claude.com. Those are invalid hostnames, so the
links fail at DNS resolution rather than returning an HTTP error, and the
build's broken-link check only covers internal links.

Restore the subdomain on all 21 occurrences across 9 files.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@marcel-rbro marcel-rbro added documentation Improvements or additions to documentation. t-docs Issues owned by technical writing team. labels Aug 17, 2026
@marcel-rbro marcel-rbro self-assigned this Aug 17, 2026
@apify-service-account

apify-service-account commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

🗑️ Preview for this PR was deleted.

@marcel-rbro
marcel-rbro marked this pull request as ready for review August 17, 2026 13:02
@marcel-rbro
marcel-rbro merged commit 0a123c7 into master Aug 18, 2026
14 checks passed
@marcel-rbro
marcel-rbro deleted the docs/fix-malformed-external-urls branch August 18, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation. t-docs Issues owned by technical writing team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants