Skip to content

Node.js based forum software built for the modern web

fix: category label and breadcrumbs

Barış Soner Uşaklı065ea0fbeca3
diff --git a/install/package.json b/install/package.json
index 69eed67c7c..ce3235b999 100644
--- a/install/package.json
+++ b/install/package.json
@@ -112,10 +112,10 @@
"nodebb-plugin-spam-be-gone": "2.3.3",
"nodebb-plugin-web-push": "0.7.10",
"nodebb-rewards-essentials": "1.0.3",
- "nodebb-theme-harmony": "3.0.5",
+ "nodebb-theme-harmony": "3.0.6",
"nodebb-theme-lavender": "8.0.4",
"nodebb-theme-peace": "3.0.3",
- "nodebb-theme-persona": "15.0.5",
+ "nodebb-theme-persona": "15.0.6",
"nodebb-widget-essentials": "8.0.0",
"nodemailer": "8.0.11",
"nprogress": "0.2.0",
diff --git a/public/src/modules/helpers.common.js b/public/src/modules/helpers.common.js
index 10b18321dc..409cc8a48a 100644
--- a/public/src/modules/helpers.common.js
+++ b/public/src/modules/helpers.common.js
@@ -168,7 +168,7 @@ module.exports = function (utils, Benchpress, tx, relative_path) {
const href = tag === 'a' ? `href="${relative_path}/category/${escape(category.slug)}"` : '';
return `<${tag} component="topic/category" ${href} class="badge px-1 text-truncate text-decoration-none ${className}" style="color: ${color};background-color: ${bgColor};border-color: ${bgColor}!important; max-width: 70vw;">
${icon && icon !== 'fa-nbb-none' ? `<i class="fa fa-fw ${icon}"></i>` : ''}
- ${escape(_tx.call(this, String(category.name)))}
+ ${_tx.call(this, String(category.name))}
</${tag}>`;
}
diff --git a/src/views/admin/partials/breadcrumbs.tpl b/src/views/admin/partials/breadcrumbs.tpl
index 1832f96553..b5bea23fa9 100644
--- a/src/views/admin/partials/breadcrumbs.tpl
+++ b/src/views/admin/partials/breadcrumbs.tpl
@@ -4,7 +4,7 @@
<li{{{ if @last }}} component="breadcrumb/current"{{{ end }}} itemscope="itemscope" itemprop="itemListElement" itemtype="http://schema.org/ListItem" class="breadcrumb-item {{{ if @last }}}active{{{ end }}}">
<meta itemprop="position" content="{@index}" />
{{{ if ./url }}}<a href="{./url}" itemprop="item">{{{ end }}}
- <span class="fw-semibold" itemprop="name">{tx(./text)}</span>
+ <span class="fw-semibold" itemprop="name">{{tx(./text)}}</span>
{{{ if ./url }}}</a>{{{ end }}}
</li>
{{{ end }}}