Uh oh!
There was an error while loading. Please reload this page.
feat: Use rel="noopener noreferrer nofollow ugc" on user links - #215
feat: Use rel="noopener noreferrer nofollow ugc" on user links#215f2c-ci-robot[bot] merged 4 commits into
Conversation
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
HowieHz
commented
Apr 5, 2026
@JohnNiang 请求 review |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…l=-noopener-ugc-on-user-links
…l=-noopener-ugc-on-user-links
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ruibaby The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Uh oh!
There was an error while loading. Please reload this page.
fix#214
+ nofollow优化 SEO+ ugc符合最新语义(Google 自 2019)我调查了下其他的
相关文档:
没有把链接的 target / rel 处理放进 packages/comment-widget/src/utils/html.ts 的 cleanHtml(),而是放在了渲染期 packages/comment-widget/src/comment-content.ts。
给评论正文里的 统一补 target="_blank" 和 rel="noopener noreferrer nofollow ugc" 作为渲染策略,区分于清洗逻辑。如果要在清洗的时候就做这个 rel 修改,有以下问题: