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.
URLSearchParams
qs
1 parent 83bf20a commit 85e8f92Copy full SHA for 85e8f92
1 file changed
assets/vue/services/baseService.js
@@ -1,3 +1,4 @@
1
+import qs from "qs"
2
import api from "../config/api"
3
4
export default {
@@ -27,9 +28,9 @@ export default {
27
28
let nextPageParams = null
29
30
if (data["hydra:view"] && data["hydra:view"]["hydra:next"]) {
- const queryString = data["hydra:view"]["hydra:next"].split("?")[1]
31
+ const queryString = data["hydra:view"]["hydra:next"].split("?")[1] || ""
32
- nextPageParams = Object.fromEntries(new URLSearchParams(queryString))
33
+ nextPageParams = qs.parse(queryString)
34
}
35
36
return {
0 commit comments