Skip to content

Add permanent url for the latest Linkerd docs#2116

Open
travisbeckham wants to merge 6 commits intomainfrom
travis/docs-redirect
Open

Add permanent url for the latest Linkerd docs#2116
travisbeckham wants to merge 6 commits intomainfrom
travis/docs-redirect

Conversation

@travisbeckham
Copy link
Copy Markdown
Collaborator

@travisbeckham travisbeckham commented May 4, 2026

Overview

Add a permanent url for the latest Linkerd docs, making /docs/ a real url, and /{latestMajorVersion}/ a redirect.

For example, while 2.19 is the latest major version, linkerd.io/2.19/ will redirect to linkerd.io/docs/, but once 2.20 is released, linkerd.io/2.19/ would become an actual directory that is not indexed. Only linkerd.io/docs/ and linkerd.io/2-edge/ will be indexed.

With this change, we should not use the /2/ Cloudflare redirect in the content anymore, we can just use /docs/. We will leave the Cloudflare redirect in place for existing external links, but we should stop using it internally so our linting can check these links.

Even though this is a major change, all existing links internally and externally should continue to work.

This change was motivated by comments in issue #1849.

High-level Changes

  • All of the latest docs are moved to content/docs/.

  • An alias is automatically generated for every page in the latest docs. E.g.: linkerd.io/2.19/reference redirects to linkerd.io/docs/reference

  • All older versions of docs are in directories named by their version (same as today), and now have a noindex meta tag set. E.g.: linkerd.io/2.18, linkerd.io/2.17, etc

  • Docs images have been moved to the static directory

  • All internal links that used the Cloudflare /2/ redirect have been updated to point to /docs/, except links that are part of CLI output.

  • Each version (linkerd.io/docs, linkerd.io/2.17, etc) now redirects to the Getting Started page, instead of Overview.

  • After this change is merged, the Cloudflare /2/ redirect should be updated to point to /docs/, which means we will not have to update this anymore where there's a new major version 🎉.

Preview links

Question for reviewers

  • Do we want to add the noindex meta tag to older version of the docs, so only linkerd.io/docs/ and linkerd.io/2-edge/ will be indexed? Currently, older versions do not show up in sitemap.xml.

Signed-off-by: Travis Beckham <travis@buoyant.io>
Signed-off-by: Travis Beckham <travis@buoyant.io>
Signed-off-by: Travis Beckham <travis@buoyant.io>
Signed-off-by: Travis Beckham <travis@buoyant.io>
@travisbeckham travisbeckham requested review from kflynn and wmorgan May 4, 2026 21:45
Signed-off-by: Travis Beckham <travis@buoyant.io>
Comment thread linkerd.io/README.md
Comment thread linkerd.io/README.md
- Click on the `Rules`section
- Update the rule `https://linkerd.io/2/*` so that it points to
`https://linkerd.io/2.19/$1`
- Push, and hold the merge till after `2.20` is out.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a step we need in here to make the per-file 2.20 -> docs redirects? Or is that only needed as a one-time thing for 2.19?

Copy link
Copy Markdown
Collaborator Author

@travisbeckham travisbeckham May 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the {latestVersion} -> docs redirects are generated at build time. You can see this in alias-latest-docs.html‎

(or am I not understanding your question?)

Signed-off-by: Travis Beckham <travis@buoyant.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants