From c207fe0f07591e371bcee423e91ce3e79056e9f6 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Mon, 24 Apr 2023 23:32:57 +0200 Subject: [PATCH] Fixed page navigation --- resources/js/components/VPages.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, });