# URL后跟句点和非空白类别时会损坏

**URL:** <https://meta.discourse.org/t/urls-followed-by-a-period-and-a-non-whitespace-category-are-broken/195259>\
**Category:** UX\
**Created:** [2021年六月28日 17:37 UTC](https://meta.discourse.org/t/urls-followed-by-a-period-and-a-non-whitespace-category-are-broken/195259 "2021-06-28T17:37:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2021年六月28日 17:37 UTC](https://meta.discourse.org/t/urls-followed-by-a-period-and-a-non-whitespace-category-are-broken/195259/1 "2021-06-28T17:37:44Z")

</div>

如果一个行内单框链接后跟了一个句号，那么紧跟在句号之后的任何非空白字符都会被添加到该行内单框的路径中（例如：[https://meta.discourse.org/tags.）。点击该链接将返回“未找到”页面。](https://meta.discourse.org/tags.%EF%BC%89%E3%80%82%E7%82%B9%E5%87%BB%E8%AF%A5%E9%93%BE%E6%8E%A5%E5%B0%86%E8%BF%94%E5%9B%9E%E2%80%9C%E6%9C%AA%E6%89%BE%E5%88%B0%E2%80%9D%E9%A1%B5%E9%9D%A2%E3%80%82)

上述链接使用的标记为 `https://meta.discourse.org/tags.)`。

我在 Ubuntu 上使用最新版的 Chrome 浏览器时观察到了这一行为。

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2021年六月28日 17:49 UTC](https://meta.discourse.org/t/urls-followed-by-a-period-and-a-non-whitespace-category-are-broken/195259/2 "2021-06-28T17:49:59Z")

</div>

这有点棘手，因为

```plaintext
https://meta.discourse.org/tags.)

```

是一个完全有效的 URL。如果我们自动去掉 `.` 和/或 `)`，可能会破坏那些在 URL 中合法使用这些字符的网站的链接：thinking:
