Skip to content

docs: Versioned redirect logic #26270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

boruszak
Copy link
Contributor

Description

This PR adds redirects to support advanced version picker behavior in Nomad following the IA restructure.

Specifically, it covers two situations:

  1. A user is on a page in v.10, and they select version 1.8 or 1.9. This page used to be in a different location. Instead of generating a 404, the user is redirected to the correct page in their selected version.

  2. A user is on a page in v1.10 and they select version 1.8 or 1.9. This page used to be a tutorial. The user is redirected to an archived version of the tutorial, which preserves the content as it did when that version was available.

The behavior will not appear online immediately after merging this PR. A PR in a different internal repository will change the version picker behavior so that the version picker will appear on a page that didn't exist in a previous version, with version options beginning at 1.8

@boruszak boruszak requested a review from aimeeu July 11, 2025 20:32
@boruszak boruszak added the backport/website This will backport PR changes to `stable-website` && the latest release-branch label Jul 11, 2025
@boruszak boruszak marked this pull request as ready for review July 11, 2025 20:37
@boruszak boruszak requested review from a team as code owners July 11, 2025 20:37
@boruszak boruszak requested a review from nandereck July 11, 2025 20:37
@aimeeu aimeeu added theme/docs Documentation issues and enhancements backport/1.10.x backport to 1.10.x release line labels Jul 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/website This will backport PR changes to `stable-website` && the latest release-branch backport/1.10.x backport to 1.10.x release line theme/docs Documentation issues and enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants