# 在“自动静默首帖正则表达式”描述中添加指向“关注词”的链接

**URL:** https://meta.discourse.org/t/add-link-from-auto-silence-first-post-regex-description-to-watched-words/403058
**Category:** UX
**Tags:** watched-words, site-settings
**Created:** [2026年五月15日 15:54 UTC](https://meta.discourse.org/t/add-link-from-auto-silence-first-post-regex-description-to-watched-words/403058 "2026-05-15T15:54:07Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2026年五月21日 14:10 UTC](https://meta.discourse.org/t/add-link-from-auto-silence-first-post-regex-description-to-watched-words/403058/2 "2026-05-21T14:10:50Z")

</div>

此 PR 合并后将添加链接 👍

> <https://github.com/discourse/discourse/pull/40222>
>
> Several site setting descriptions reference an admin page by name but leave the …reference as plain text, forcing admins to navigate manually to act on the description's advice. For example, the \`auto\_silence\_first\_post\_regex\` description tells admins to "Use Silence Watched Words instead" without linking to the watched words admin page; \`use\_admin\_ip\_allowlist\` ends with the textual breadcrumb "(Admin \> Logs \> Screened Ips)" rather than a link; and \`backup\_location\` mentions "Files settings" with no way to jump there.
> 
> Wrap those references in \`\<a href='%{base\_path}/...'\>...\</a\>\` so they render as clickable links. The rendering pipeline already supports this: \`SiteSettings::LabelFormatter.description\` interpolates \`%{base\_path}\` via \`I18n.t\`, and the admin UI renders the description via \`{{trustHTML @description}}\` in
> \`frontend/discourse/admin/components/site-settings/description.gjs\`. Existing entries such as \`default\_locale\`, \`contact\_email\`, and \`content\_security\_policy\_frame\_ancestors\` already use the same pattern, so no rendering changes are needed.
> 
> The \`use\_admin\_ip\_allowlist\` entry also drops the trailing "(Admin \> Logs \> Screened Ips)" breadcrumb, which becomes redundant once the phrase itself is a link.
> 
> https://meta.discourse.org/t/403058

---

_[View the full topic](https://meta.discourse.org/t/add-link-from-auto-silence-first-post-regex-description-to-watched-words/403058)._
