# Discourse 内的锚点链接不起作用 - 但从主题外部可以

**URL:** <https://meta.discourse.org/t/anchor-links-not-working-within-discourse-but-work-from-outside-the-topic/397748>\
**Category:** Bug\
**Created:** [2026 年3 月 5 日 15:03 UTC](https://meta.discourse.org/t/anchor-links-not-working-within-discourse-but-work-from-outside-the-topic/397748 "2026-03-05T15:03:53Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

作者： ![AlexVoss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexvoss/32/546169_2.png) [@AlexVoss](https://meta.discourse.org/u/AlexVoss)\
发布日期： [2026 年3 月 5 日 15:27 UTC](https://meta.discourse.org/t/anchor-links-not-working-within-discourse-but-work-from-outside-the-topic/397748/4 "2026-03-05T15:27:43Z")

</div>

啊，抱歉。标题中的“外部”是指它们从例如通知邮件中起作用。然后我意识到它们在打开新标签页或窗口时也起作用。您可以在我的第一个回复中的链接中看到这一点。在已在页面上的情况下点击它会跳转到主题的顶部。如果在新标签页中打开它，它会如预期那样在顶部显示标题。

至于之前的错误报告：不幸的是，现在其中没有一个链接有效了。而且，那是 2022 年的——这不是那种会长时间未修复的边缘情况错误吧？

我希望我没有理解错。我能够在 `try.discourse.org`、`meta.discourse.org` 以及我们自己的托管论坛上重现这个问题。

---

_[View the full topic](https://meta.discourse.org/t/anchor-links-not-working-within-discourse-but-work-from-outside-the-topic/397748)._
