# 需要插件来防止主题内每个回复的编号规范化URL

**URL:** <https://meta.discourse.org/t/plugin-needed-to-prevent-numbered-canonical-urls-for-each-reply-within-a-topic/210028>\
**Category:** Marketplace\
**Created:** [2021年十一月24日 01:51 UTC](https://meta.discourse.org/t/plugin-needed-to-prevent-numbered-canonical-urls-for-each-reply-within-a-topic/210028 "2021-11-24T01:51:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SethWilliams](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sethwilliams/32/238634_2.png) [@SethWilliams](https://meta.discourse.org/u/SethWilliams)\
**Post date:** [2021年十一月24日 01:51 UTC](https://meta.discourse.org/t/plugin-needed-to-prevent-numbered-canonical-urls-for-each-reply-within-a-topic/210028/1 "2021-11-24T01:51:16Z")

</div>

**您希望完成什么？**  
我正在寻找一位开发者来构建一个插件，该插件可以删除滚动浏览主题时每个回复出现的编号 URL（例如 /2、/3、/4 等），以便搜索引擎无法抓取和索引为每个主题创建的这些附加 URL（Google 应该会忽略这些规范化 URL，但在许多情况下，它们不会）。

有关问题的概述以及我为什么要这样做， **请在此处查看我的原始帖子** 。

主题 URL 中为每个_页面_添加 page=2、page=3 等内容没有问题。我只是想阻止我的论坛在每个_回复_末尾添加 /2、/3、/4 规范化链接。

**您何时需要完成？**  
没有严格的时间限制。我的主要担忧是知道_是否可以完成_。

假设可以完成，我希望在 2022 年第一季度完成。

**您能为这项任务提供的预算（美元）是多少？**  
2000 美元

---

<div class="post-metadata">

**Author:** ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)\
**Post date:** [2021年十一月24日 03:09 UTC](https://meta.discourse.org/t/plugin-needed-to-prevent-numbered-canonical-urls-for-each-reply-within-a-topic/210028/2 "2021-11-24T03:09:39Z")

</div>

可以，但我不会建议在插件中这样做。代码库中的各种位置都存在对路径结构的假设，其他自定义（插件和主题）也是如此。您现在可以构建一个解决所有这些实例的东西，但这可能会发生变化。

我建议继续倡导在核心应用程序中解决此问题（就其而言是一个问题），就像您一直在做的那样。在此过程结束时，您将以一种或另一种方式获得更好的结果。

构建插件不一定会让您更快地获得“正确”的结果（在初始版本中正确处理需要一段时间），并且最终您将为此类问题（即结构性 SEO 问题）获得更糟糕的结果。

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2021年十二月24日 03:10 UTC](https://meta.discourse.org/t/plugin-needed-to-prevent-numbered-canonical-urls-for-each-reply-within-a-topic/210028/3 "2021-12-24T03:10:27Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
