Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix setUrlParams function

Krzysztof Białogłowicz2ee43e1d5511
diff --git a/saleor/static/js/components/CategoryPage.js b/saleor/static/js/components/CategoryPage.js
index 7c8ac1a405..4f0322153a 100644
--- a/saleor/static/js/components/CategoryPage.js
+++ b/saleor/static/js/components/CategoryPage.js
@@ -86,12 +86,12 @@ class CategoryPage extends Component {
if (priceFilters) {
priceFilters.map((param, index) => {
- if (index == 0) {
- url += '?' + param;
- } else {
- url += '' + param;
- }
- });
+ if (index == 0 && attributesFilter == 0) {
+ url += '?' + param;
+ } else {
+ url += '&' + param;
+ }
+ })
}
if (attributesFilter.length == 0 && priceFilters.length == 0) {