Add discoverability redirects for ~130 guessable URL patterns#4337
Open
Swimburger wants to merge 1 commit intomainfrom
Open
Add discoverability redirects for ~130 guessable URL patterns#4337Swimburger wants to merge 1 commit intomainfrom
Swimburger wants to merge 1 commit intomainfrom
Conversation
Add redirects for ~130 URL patterns that currently return 404 but are logically guessable by users and crawlers: - SDK language shorthand: /learn/sdks/<lang>/... → /learn/sdks/generators/<lang>/... - .NET/dotnet aliases → csharp generator paths - SDK top-level shortcuts: /learn/sdks/quickstart, introduction, etc. - API definition shorthand: /learn/openapi/... → /learn/api-definitions/openapi/... - CLI shorthand: /learn/cli/... → /learn/cli-api-reference/cli-reference/... - Docs top-level shortcuts for components, features, auth, config, etc. - Docs integration shortcuts: /learn/docs/posthog → analytics/posthog Co-Authored-By: Niels Swimberghe <3382717+Swimburger@users.noreply.github.com>
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Contributor
3 tasks
devalog
approved these changes
Mar 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds redirects for URL patterns that users and crawlers commonly guess but currently return 404. These are "discoverability" redirects — they don't fix broken links, they catch logical URL guesses that miss intermediate path segments.
Categories of redirects added:
/learn/sdks/typescript/quickstart→/learn/sdks/generators/typescript/quickstart/learn/sdks/net/...and/learn/sdks/dotnet/...→generators/csharp/.../learn/sdks/quickstart→/learn/sdks/overview/quickstart/learn/openapi/overview→/learn/api-definitions/openapi/overview/learn/cli/commands→/learn/cli-api-reference/cli-reference/commands/learn/docs/quickstart,/learn/docs/ask-fern,/learn/docs/posthog, etc.All 160 source URLs were confirmed as 404 on production. All destination URLs were confirmed as 200.
Review & Testing Checklist for Human
/learn/sdks/capabilities/method-names) aren't overridden by new broad wildcards (e.g.,/learn/sdks/typescript/:slug*). If Fern uses last-match, this PR could break existing redirects./learn/sdks/changelogdestination: Currently points to/learn/sdks/generators/typescript/changelogsince there's no unified SDK changelog page. Confirm this is an acceptable default or if it should point to/learn/sdks/overview/introductioninstead./learn/sdks/typescript/quickstartand/learn/openapi/overview).Notes
:slug*) will also redirect paths where the destination doesn't exist (e.g.,/learn/sdks/typescript/nonexistent→/learn/sdks/generators/typescript/nonexistent, which will still 404). This is standard behavior and still moves the user closer to the right URL structure.Link to Devin session: https://app.devin.ai/sessions/2dd15abd3d26412d9f73c60a6facb94d
Requested by: @Swimburger