# 将自定义侧边栏链接配置为在新选项卡中打开

**URL:** <https://meta.discourse.org/t/configure-a-custom-sidebar-link-to-open-in-a-new-tab/267004>\
**Category:** Feature\
**Tags:** sidebar\
**Created:** [2023 年6 月 1 日 11:09 UTC](https://meta.discourse.org/t/configure-a-custom-sidebar-link-to-open-in-a-new-tab/267004 "2023-06-01T11:09:37Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

作者： ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
发布日期： [2023 年12 月 6 日 17:34 UTC](https://meta.discourse.org/t/configure-a-custom-sidebar-link-to-open-in-a-new-tab/267004/18 "2023-12-06T17:34:19Z")

</div>

> [@pfaffman](#):
>
> 侧边栏似乎仍然没有插件插槽

这是故意的，理想情况下，侧边栏应该使用 API 扩展……这有助于我们维护在此处添加的任何自定义链接/部分。

目前看来，外部链接目标是基于用户设置 `external_links_in_new_tab` 的全有或全无……因此，即使通过 API 添加了自定义部分/链接，也没有方法可以更改特定链接的目标。添加此选项是可能的……尽管历史上我们倾向于尊重用户如何打开链接的首选项。

---

_[View the full topic](https://meta.discourse.org/t/configure-a-custom-sidebar-link-to-open-in-a-new-tab/267004)._
