mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
FIX: use category description for sidebar link title (#20436)
Value in `description_text` is escaped. We would like to display `/` properly in link title.
This commit is contained in:
parent
ad0fd9919b
commit
9fb5bfd93d
@ -131,7 +131,7 @@ export default class CategorySectionLink {
|
||||
}
|
||||
|
||||
get title() {
|
||||
return this.category.description_text;
|
||||
return this.category.description;
|
||||
}
|
||||
|
||||
get text() {
|
||||
|
@ -615,7 +615,7 @@ acceptance("Sidebar - Logged on user - Categories Section", function (needs) {
|
||||
|
||||
assert.strictEqual(
|
||||
query(`.sidebar-section-link[data-category-id="${category.id}"]`).title,
|
||||
category.description_text,
|
||||
category.description,
|
||||
"category description without HTML entity is used as the link's title"
|
||||
);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user