Aurora
(Aurora)
14.Август.2025 09:45:59
41
После обновления у нас возникла проблема с компонентом — возможно ли его обновить?
@Juan_Barreto предоставил свою версию плагина с исправлением на случай, если оригинальный компонент не будет обновлён (похоже, о нём забыли).
Перейдите по ссылке GitHub - BarretoJuan/discourse-breadcrumb-links: Breadcrumb Navigation for Discourse · GitHub , найдите git-ссылку и установите плагин в Discourse.
У меня всё работает.
2 лайка
Исправление внесено! Спасибо @Juan_Barreto !!!
Мне очень нравится этот компонент.
Думаю, он может стать решением для некоторых вопросов, которые я обсуждал в более ранней теме:
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 …
gilles
16.Июль.2026 10:05:33
45
Я заметил, что у меня всегда возникает ошибка в компоненте, не знаю, я ли один в такой ситуации
deprecated.js:54 [THEME 109 ‘Breadcrumb Links’] УВЕДОМЛЕНИЕ ОБ УСТАРЕВАНИИ: Файл ‘theme-109/discourse/connectors/above-main-container/discourse-breadcrumb-links.hbs’ использует устаревшее расширение .hbs. Перепишите его, чтобы использовать расширение ‘.gjs’. [deprecation id: discourse.hbs-extension] [info: Deprecating .hbs file extension in themes and plugins ]
deprecated
@
deprecated.js:54
(anonymous)
@
discourse-breadcrumb-links.hbs:6
Я только что объединил следующий pull request:
main ← jlzlt:fix/topic-breadcrumb-delay
merged 01:37AM - 28 Jul 26 UTC
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.
1 лайк