Skip to content

Commit d937b26

Browse files
committed
fix page params
1 parent d9ed9eb commit d937b26

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

common.blocks/sidebar/__sorting/sidebar__sorting.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,18 @@ modules.define(
2121
direction = 'asc';
2222
}
2323

24-
Location.change({ params: this._getParams(sortType, direction) });
24+
25+
var params = this._getParams(sortType, direction);
26+
delete params.page;
27+
28+
Location.change({ params: params });
29+
window.location.reload();
2530
},
2631

2732
_getParams: function(sort, direction) {
2833
return Object.assign(
2934
Location.getUri().queryParams,
30-
{ sort, direction },
31-
{ page: '1' }
35+
{ sort, direction }
3236
);
3337
}
3438

0 commit comments

Comments
 (0)