This commit is contained in:
wilsonfreitas
2024-11-26 01:30:03 +00:00
parent 3d4026b08f
commit 3eafa85d83
8 changed files with 32 additions and 41 deletions
+4 -1
View File
@@ -225,7 +225,10 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
}
async function findAndActivateCategories() {
const currentPagePath = offsetAbsoluteUrl(window.location.href);
// Categories search with listing only use path without query
const currentPagePath = offsetAbsoluteUrl(
window.location.origin + window.location.pathname
);
const response = await fetch(offsetRelativeUrl("listings.json"));
if (response.status == 200) {
return response.json().then(function (listingPaths) {