feat: add /latest/ URL redirect to current stable version#5082
Draft
DeepDiver1975 wants to merge 2 commits intomasterfrom
Draft
feat: add /latest/ URL redirect to current stable version#5082DeepDiver1975 wants to merge 2 commits intomasterfrom
DeepDiver1975 wants to merge 2 commits intomasterfrom
Conversation
Add Antora urls.latest_version_segment config so that /desktop/latest/ (and all other components) redirect to the current stable version (e.g. /desktop/6.0/). Uses redirect:from strategy: canonical URLs remain versioned, static redirect files are generated at /component/latest/** by Antora's built-in --redirect-facility static. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… to be working on GitHub pages deployments
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
urls.latest_version_segment: latestandurls.latest_version_segment_strategy: redirect:fromtosite.yml/component/latest/**pointing to the current stable version (e.g./desktop/latest/→/desktop/6.0/,/server/latest/→/server/10.16/, etc.)--redirect-facility staticflag — no build script changes neededNotes
redirect:fromkeeps the versioned URL as canonical;/latest/acts as an aliasmasterbranches in component repos should haveprerelease: truein theirantora.ymlso Antora correctly identifies the highest stable version as "latest" — please verify before mergingTest plan
npm run antoraand confirmpublic/desktop/latest/redirect files are generatedpublic/desktop/latest/index.htmlcontains a redirect to/desktop/6.0/public/desktop/latest/faq/also redirects correctlymasterbranches haveprerelease: trueinantora.yml🤖 Generated with Claude Code