diff --git a/js/InteractsWithQueryBuilder.vue b/js/InteractsWithQueryBuilder.vue index 03f93f5..19c6ec2 100644 --- a/js/InteractsWithQueryBuilder.vue +++ b/js/InteractsWithQueryBuilder.vue @@ -125,9 +125,7 @@ export default { if (this.$inertia) { const query = this.queryBuilderString; - this.$inertia.replace( - this.route(this.route().current()) + `?${query}` - ); + this.$inertia.replace(location.pathname + `?${query}`); } }, },