Skip to content

Commit

Permalink
Parse query params for /certified
Browse files Browse the repository at this point in the history
  • Loading branch information
carkod committed Dec 15, 2023
1 parent f62b60c commit 6b30409
Show file tree
Hide file tree
Showing 4 changed files with 487 additions and 156 deletions.
6 changes: 3 additions & 3 deletions static/js/src/certified-search-results.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ function retrieveSelectedFilters() {
const path = window.location.pathname;
const pathCategory = path.replace("/certified/", "");

let selectedCategories;
let selectedCategories = [];
let selectedVendors = urlParams.getAll("vendor");
let selectedReleases = urlParams.getAll("release");

if (pathCategory !== "/certified") {
selectedCategories = urlParams.getAll("category").push(pathCategory);
selectedCategories = urlParams.getAll("category");
selectedCategories.push(pathCategory);
} else {
selectedCategories = urlParams.getAll("category");
}

return {
category: selectedCategories,
vendor: selectedVendors,
Expand Down
Loading

0 comments on commit 6b30409

Please sign in to comment.