Skip to content

Commit 34ce13e

Browse files
committed
listing - decode encoded category everywhere
(cherry picked from commit f6a7cd9)
1 parent f93cc13 commit 34ce13e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

news/changelog-1.6.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## In this release
44

55
- ([#11596](https://github.com/quarto-dev/quarto-cli/issues/11596)): Fix regression with h1 and title processing in non-website project, related to a fix for breadcrumbs in website projects ([#11224](https://github.com/quarto-dev/quarto-cli/issues/11596)).
6+
- ([#11752](https://github.com/quarto-dev/quarto-cli/issues/11752)): Fix regression with non-alphanumeric characters in `categories` preventing correct filtering of listing.
67

78
## In previous releases
89

src/resources/projects/website/listing/quarto-listing.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ const kProgressiveAttr = "data-src";
22
let categoriesLoaded = false;
33

44
window.quartoListingCategory = (category) => {
5-
category = atob(category);
5+
// category is URI encoded in EJS template for UTF-8 support
6+
category = decodeURIComponent(atob(category));
67
if (categoriesLoaded) {
78
activateCategory(category);
89
setCategoryHash(category);

0 commit comments

Comments
 (0)