Skip to content

Commit f6a7cd9

Browse files
committed
listing - decode encoded category everywhere
1 parent 90d69cc commit f6a7cd9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)