Skip to content

Commit 1c9c4d6

Browse files
committed
fix: preserve current path on filter
1 parent 7494d31 commit 1c9c4d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/productsfilter/scripts.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
var data = response.hasOwnProperty('responseJSON') ? response.reponseJSON : response
4444

4545
if (data.hasOwnProperty('queryString')) {
46-
history.replaceState(null, '', '?' + data.queryString)
46+
history.replaceState(null, '', window.location.pathname + '?' + data.queryString);
4747
}
4848

4949
$('[data-filter]').hide()

0 commit comments

Comments
 (0)