# 面包屑链接

**URL:** https://meta.discourse.org/t/breadcrumb-links/325372
**Category:** Theme component
**Created:** [2024年九月6日 19:53 UTC](https://meta.discourse.org/t/breadcrumb-links/325372 "2024-09-06T19:53:27Z")
**Posts on this page:** 6
**Page:** 3

<div class="post-metadata">

### Author: ![Aurora](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aurora/32/523140_2.png) [@Aurora](https://meta.discourse.org/u/Aurora)
#### Post date: [2025年八月14日 09:45 UTC](https://meta.discourse.org/t/breadcrumb-links/325372/41 "2025-08-14T09:45:59Z")

</div>

更新后，组件出现问题——可以更新它吗？

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/a/2/8a2c2c3a6b6e979beaef667b390ec3d9044f5b10.png)

---

<div class="post-metadata">

### Author: ![alltiagocom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alltiagocom/32/492709_2.png) [@alltiagocom](https://meta.discourse.org/u/alltiagocom)
#### Post date: [2025年八月15日 06:53 UTC](https://meta.discourse.org/t/breadcrumb-links/325372/42 "2025-08-15T06:53:54Z")

</div>

@Juan_Barreto 提供了一个包含修复程序的插件版本，以防原始组件未更新（似乎已被遗忘）。

前往 [GitHub - BarretoJuan/discourse-breadcrumb-links: Breadcrumb Navigation for Discourse](https://github.com/BarretoJuan/discourse-breadcrumb-links/tree/main) 查找 git 链接，然后在 Discourse 中安装。

它对我来说运行正常。

---

<div class="post-metadata">

### Author: ![denvergeeks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denvergeeks/32/327671_2.png) [@denvergeeks](https://meta.discourse.org/u/denvergeeks)
#### Post date: [2025年八月17日 09:19 UTC](https://meta.discourse.org/t/breadcrumb-links/325372/43 "2025-08-17T09:19:46Z")

</div>

修复已合并！感谢 @Juan_Barreto！！！

---

<div class="post-metadata">

### Author: ![Andrew\_Rowe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrew_rowe/32/445877_2.png) [@Andrew\_Rowe](https://meta.discourse.org/u/Andrew_Rowe)
#### Post date: [2026年一月6日 19:07 UTC](https://meta.discourse.org/t/breadcrumb-links/325372/44 "2026-01-06T19:07:36Z")

</div>

我真的很喜欢这个组件

我认为它可能是我在早期主题中讨论的一些问题的解决方案

> [@Remove categories and tags buttons](https://meta.discourse.org/t/remove-categories-and-tags-buttons/392483?u=andrew_rowe):
>
> Is there an easy way to remove these two buttons? Reason I’m asking is that I’ve been reading (on this site) of some people’s opinions about Discourse being a little overwhelming to new users. I just feel the categories button is a little redundant since the categories tab is right there and if an experience user wants to search by tag he can use the side menu. I like the feature but it makes things a little ‘cluttered’ IMHO I realize I could find the CSS tags and hide them but I was wondering …

---

<div class="post-metadata">

### Author: ![gilles](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gilles/32/549022_2.png) [@gilles](https://meta.discourse.org/u/gilles)
#### Post date: [2026年七月16日 10:05 UTC](https://meta.discourse.org/t/breadcrumb-links/325372/45 "2026-07-16T10:05:33Z")

</div>

我注意到组件上始终存在一个异常，不知道是否只有我一个人遇到这种情况 😅

deprecated.js:54 [THEME 109 ‘Breadcrumb Links’] 弃用通知：文件 ‘theme-109/discourse/connectors/above-main-container/discourse-breadcrumb-links.hbs’ 使用了已弃用的 .hbs 扩展名。请重构它以使用 ‘.gjs’ 扩展名。 [弃用 ID: discourse.hbs-extension] [信息: [Deprecating .hbs file extension in themes and plugins](https://meta.discourse.org/t/398896) ]

| | **deprecated** | **@** | **deprecated.js:54** |
| --- | --- | --- | --- |
| | (anonymous) | @ | discourse-breadcrumb-links.hbs:6 |

---

<div class="post-metadata">

### Author: ![denvergeeks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denvergeeks/32/327671_2.png) [@denvergeeks](https://meta.discourse.org/u/denvergeeks)
#### Post date: [2026年七月28日 01:41 UTC](https://meta.discourse.org/t/breadcrumb-links/325372/48 "2026-07-28T01:41:33Z")

</div>

我刚刚合并了以下拉取请求：

> <https://github.com/denvergeeks/discourse-breadcrumb-links/pull/3>
>
> I stumbled upon this repo and have been using it in my Discourse community. Afte…r forking, I made some adjustments that I thought might be worth sharing - feel free to take or leave them.
> 
> \## Problem
> 
> When navigating to a topic, breadcrumbs showed only \`← Home\` for ~1 second before the full trail appeared. This was caused by 2–3 sequential AJAX calls in \`init-theme.js\` to fetch topic and category data.
> 
> Category pages were unaffected because they used the Glimmer component with synchronous category lookups.
> 
> \## Changes
> 
> \### Bug fix
> \*\*Topic breadcrumb delay removed\*\*: Topic breadcrumbs are now handled entirely in the Glimmer component (\`breadcrumbs.gjs\`) using data already loaded by Ember's router (\`router.currentRoute.parent.attributes\`). No AJAX calls and thus no delay in showing.
> 
> \### New settings
> \- \`home\_label\` (string, default \`"Home"\`) - customize the label of the first breadcrumb link
> \- \`home\_url\` (string, default \`"/"\`) - customize where the first breadcrumb link points
> \- \`show\_in\_admin\` (bool, default \`true\`) - whether to show breadcrumbs on admin pages
> \- \`show\_topic\_title\` (bool, default \`false\`) - whether to show the topic title as the last breadcrumb on topic pages
> 
> \### Cleanup
> Also took the opportunity to remove some dead code and leftovers from the old jQuery approach — the deprecated .hbs connector, its associated CSS, and the now-empty init-theme.js. A few minor code consistency improvements as well.

[上一頁](https://meta.discourse.org/t/breadcrumb-links/325372.md?page=2)
