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 3f13f1a commit 37976d8Copy full SHA for 37976d8
src/helpers/query.js
@@ -6,10 +6,11 @@ export function getQuery () {
6
7
export function updateQuery (query) {
8
const { origin, pathname} = window.location
9
- const newUrl = origin + pathname + '/?' + qs.stringify(
+ const newUrl = origin + pathname + '?' + qs.stringify(
10
{ ...getQuery(), ...query },
11
{ encode: false }
12
)
13
+ console.log(newUrl)
14
window.history.pushState({
15
path: newUrl,
16
}, '', newUrl)
0 commit comments