Skip to content

Commit

Permalink
listing - decode encoded category everywhere
Browse files Browse the repository at this point in the history
(cherry picked from commit f6a7cd9)
  • Loading branch information
cderv committed Jan 3, 2025
1 parent f93cc13 commit 34ce13e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/changelog-1.6.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## In this release

- ([#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)).
- ([#11752](https://github.com/quarto-dev/quarto-cli/issues/11752)): Fix regression with non-alphanumeric characters in `categories` preventing correct filtering of listing.

## In previous releases

Expand Down
3 changes: 2 additions & 1 deletion src/resources/projects/website/listing/quarto-listing.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const kProgressiveAttr = "data-src";
let categoriesLoaded = false;

window.quartoListingCategory = (category) => {
category = atob(category);
// category is URI encoded in EJS template for UTF-8 support
category = decodeURIComponent(atob(category));
if (categoriesLoaded) {
activateCategory(category);
setCategoryHash(category);
Expand Down

0 comments on commit 34ce13e

Please sign in to comment.