Skip to content
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

fix canonical tags to not point to now-deprecated docs #1481

Open
wmorgan opened this issue Sep 2, 2022 · 0 comments
Open

fix canonical tags to not point to now-deprecated docs #1481

wmorgan opened this issue Sep 2, 2022 · 0 comments

Comments

@wmorgan
Copy link
Member

wmorgan commented Sep 2, 2022

When we deprecate specific docs in a version, the canonical tags that we set in the older versions of those docs are pointing to the non-existing doc for the latest version.

E.g. there is no /2.12/tasks/securing-your-cluster/ doc (in this case, we renamed it for this version, but the same is true in earlier versions), but the 2.11, 2.10, etc versions still point to it in their meta rel=canoncial tags.

We should not create a canonical tag if the corresponding doc doesn't exist. (And for renames, we could potentially try and follow it but I think it would be hard to do, and I'm not sure it's really worth it.) The point of these canonical tags is to help Google index the latest version of everything by default, and if the latest version does not include this doc then we don't have to care too much about how it is indexed.

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

No branches or pull requests

1 participant