Fix broken links: /learn/ask-fern footer and /api-definitions/openapi/automation#4342
Closed
github-actions[bot] wants to merge 6 commits into
Closed
Fix broken links: /learn/ask-fern footer and /api-definitions/openapi/automation#4342github-actions[bot] wants to merge 6 commits into
github-actions[bot] wants to merge 6 commits into
Conversation
Co-Authored-By: unknown <>
Contributor
Author
|
🌿 Preview your docs: https://fern-preview-devin/fix-broken-links.docs.buildwithfern.com/learn |
Contributor
|
Verified using the preview link that the fix works:
Preview tested at: https://fern-preview-f31ae37a-07a7-47fb-9180-89dc5e5287c0.docs.buildwithfern.com/learn/docs/ai-features/ask-fern/overview |
Co-Authored-By: unknown <>
Contributor
|
CI is now passing after fixing the MDX parsing error in the Java changelog file ( @davidkonigsberg — ready for your review. |
Closed
5 tasks
Closed
7 tasks
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
Fixes broken links (404s) detected by the scheduled link checker:
/learn/ask-fern— The Ask Fern product was moved under Docs at/learn/docs/ai-features/ask-fern/overview, but the footer still pointed to the old path.FernFooter.tsxandfooter-dist/output.jsto/learn/docs/ai-features/ask-fern/overview/learn/ask-fernpath indocs.yml(existing redirects only covered subpaths like/learn/ask-fern/:slug*)/api-definitions/openapi/automation— This URL is missing the/learnprefix and uses the file name (automation) instead of the page's slug override (sync-your-open-api-specification)./api-definitions/openapi/automation→/learn/api-definitions/openapi/sync-your-open-api-specification.github/broken-links/broken-links.mdscaffold fileUpdates since last revision
java/changelog/2026-03-18.mdx—<String>inside a backtick span was being parsed as a JSX tag due to malformed backtick nesting (**Generic `onMessage(`Consumer<String>`)` handler**→**Generic `onMessage(Consumer<String>)` handler**). This was a pre-existing issue from main that broke the Preview Docs CI after merging. Note: the next auto-generated changelog update from the fern repo may reintroduce this if the source has the same issue.Review & Testing Checklist for Human
/api-definitions/openapi/automationredirect actually works: The docs instance is scoped tobuildwithfern.com/learn— confirm that Fern's redirect system handles paths outside the/learnprefix (i.e./api-definitions/...). If not, a different fix may be needed (e.g. a server-level redirect or a/learn/api-definitions/openapi/automationsource path instead).footer-dist/output.jsdoesn't need to be rebuilt via a build step rather than manually edited — if there's a build pipeline for this file, the manual edit could be overwritten on next build./learn/docs/ai-features/ask-fern/overview./learn/ask-fernon the preview to confirm the redirect resolves correctly.Suggested test plan: Open the preview link, scroll to the footer, and click the "Ask Fern" link. Then manually navigate to
/api-definitions/openapi/automationand/learn/ask-fernto verify both redirects land on the expected pages.Notes
/learn/ask-fernbroken link appeared twice in the checker because the footer renders on every page. Both instances are the same root cause./learn/ask-fern/:slug*did not catch the bare/learn/ask-fernpath (no trailing slug), so an explicit redirect was added as a safety net./api-definitions/openapi/automationlink origin is unknown — it was not found in any source file in the repo. It may be an external link or cached URL pointing to the site.Link to Devin session: https://app.devin.ai/sessions/5151f683b2dd4b19b266c84cb1aa999a