diff --git a/resources/js/components/VPages.vue b/resources/js/components/VPages.vue index e2beb69e..9b652609 100644 --- a/resources/js/components/VPages.vue +++ b/resources/js/components/VPages.vue @@ -33,7 +33,10 @@ export default { }, methods: { goto(page) { - this.$inertia.visit(window.location.pathname + '?page=' + page.page, { + var params = new URLSearchParams(window.location.search); + params.set('page', page.page); + + this.$inertia.visit(window.location.pathname + '?' + params.toString(), { only: this.only, preserveState: this.preserve, });