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:
Krzysztof Kotlarek 2023-02-24 16:11:45 +11:00 committed by GitHub
parent ad0fd9919b
commit 9fb5bfd93d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ export default class CategorySectionLink {
}
get title() {
return this.category.description_text;
return this.category.description;
}
get text() {

View File

@ -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"
);
});