feat: declare the RFC Editor info page canonical for RFCs and subseries - #11481
Merged
Conversation
The authoritative home of an RFC, and of a bcp/std/fyi subseries document, is the RFC Editor's info page, so declare that page canonical on the datatracker pages that render the same document. This deliberately consolidates search results on rfc-editor.org for those documents. Documents of other types keep the self-referential canonical they had. The subseries pages declared no canonical at all before this, as they do not include opengraph.html, so they gain a pagehead block.
The RFC Editor serves its info pages with a trailing slash, so the bcp and std redirects were sending visitors to a URL that redirects again. Add the missing fyi equivalent while here.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11481 +/- ##
==========================================
+ Coverage 88.58% 88.62% +0.03%
==========================================
Files 333 333
Lines 44728 44797 +69
==========================================
+ Hits 39624 39700 +76
+ Misses 5104 5097 -7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
jennifer-richards
approved these changes
Aug 12, 2026
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.
Adds
rel="canonical"pointing at the RFC Editor info page on the pages that renderan RFC or subseries document:
/doc/rfcNNNN/,/doc/html/rfcNNNN, and/doc/{bcp,std,fyi}N/.The second commit fixes the
/doc/html/{bcp,std}Nredirects to the trailing-slash formrfc-editor.org serves, and adds the missing
fyiequivalent.Closes #11334.
This PR prepared with the assistance of Claude.