We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 473a8fe commit 3f13f1aCopy full SHA for 3f13f1a
src/helpers/query.js
@@ -5,7 +5,8 @@ export function getQuery () {
5
}
6
7
export function updateQuery (query) {
8
- const newUrl = window.location.origin + '/?' + qs.stringify(
+ const { origin, pathname} = window.location
9
+ const newUrl = origin + pathname + '/?' + qs.stringify(
10
{ ...getQuery(), ...query },
11
{ encode: false }
12
)
0 commit comments