Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion vtex/loaders/intelligentSearch/productListingPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,17 @@ export const mapLabelledFuzzyToFuzzy = (
return;
}
};
/**
* URL params that still say something the props block above did not already say.
*
* `page` is deliberately absent: `pageOf` already resolved it into the key, and
* echoing the raw value on top splits one page in two — the storefront renders
* page 1 with no `?page` while its own client-side pagination asks for the same
* page as `?page=1`.
*/
const ALLOWED_PARAMS = new Set([
"ps",
"sort",
"page",
"o",
"q",
"fuzzy",
Expand Down