Skip to content

feat: declare the RFC Editor info page canonical for RFCs and subseries - #11481

Merged
jennifer-richards merged 2 commits into
ietf-tools:mainfrom
rjsparks:rfc_rel_canonical
Aug 12, 2026
Merged

feat: declare the RFC Editor info page canonical for RFCs and subseries#11481
jennifer-richards merged 2 commits into
ietf-tools:mainfrom
rjsparks:rfc_rel_canonical

Conversation

@rjsparks

Copy link
Copy Markdown
Member

Adds rel="canonical" pointing at the RFC Editor info page on the pages that render
an RFC or subseries document: /doc/rfcNNNN/, /doc/html/rfcNNNN, and
/doc/{bcp,std,fyi}N/.

The second commit fixes the /doc/html/{bcp,std}N redirects to the trailing-slash form
rfc-editor.org serves, and adds the missing fyi equivalent.

Closes #11334.

This PR prepared with the assistance of Claude.

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

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.62%. Comparing base (b5b78cd) to head (bf39fcc).
⚠️ Report is 13 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jennifer-richards
jennifer-richards merged commit d20c847 into ietf-tools:main Aug 12, 2026
9 checks passed
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.

Add rel="canonical" on RFC pages pointing to rfc-editor.org

2 participants