# 更改 AI Bot 图标以链接元素

**URL:** https://meta.discourse.org/t/change-ai-bot-icon-to-link-element/377435
**Category:** Feature
**Tags:** completed, ai, ai-bot
**Created:** [2025年八月5日 20:10 UTC](https://meta.discourse.org/t/change-ai-bot-icon-to-link-element/377435 "2025-08-05T20:10:26Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### Post date: [2025年八月13日 22:02 UTC](https://meta.discourse.org/t/change-ai-bot-icon-to-link-element/377435/3 "2025-08-13T22:02:46Z")

</div>

感谢 @awesomerobot！ 😎👍

> <https://github.com/discourse/discourse/commit/98d594a7b3e50c94eb04732474a16e0b198cb1d5>
>
> This change concerns these header icons
> 
> \<img width="220" height="116" alt="imag…e"
> src="https://github.com/user-attachments/assets/eb7883cf-4766-4499-8d1a-116a542a2cdd"
> /\>
> 
> 
> Currently the chat icon in the header switches to chat "mode" when
> possible, and remembers your last forum location. The AI header icon
> does not remember your last forum location, and just redirects you to
> the homepage when you toggle it off.
> 
> This PR adds the last forum URL memory for the AI header icon as well. 
>  
> I've also updated the AI header icon to be a link when
> \`ai\_bot\_enable\_dedicated\_ux\` is enabled, this way it can be opened in a
> new tab and do all the typical link behavior (requested here:
> https://meta.discourse.org/t/change-ai-bot-icon-to-link-element/377435).
> It is still a button when \`ai\_bot\_enable\_dedicated\_ux\`, which is
> appropriate for opening the composer.
> 
> This also updates the AI button title when the state changes (noted
> here:
> https://meta.discourse.org/t/ai-bot-header-button-title-doesnt-always-match-its-action/377402)

我之前不知道它可以是专用的，而且你在两种模式下都实现了它。 :chefs_kiss:

我在 Meta 上的另一个标签页打开 AI 界面时，我自己都感到惊讶！ 😆

---

_[View the full topic](https://meta.discourse.org/t/change-ai-bot-icon-to-link-element/377435)._
