Fixed page navigation
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2023-04-24 23:32:57 +02:00
parent aba214614c
commit c207fe0f07
1 changed files with 4 additions and 1 deletions

View File

@ -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,
});