I am using Inertia JS in Laravel 8, with following POST request to server. The problem is that the browser URL is also updated with POST request, which may be a expected behavior in some cases but I want to keep the actual GET request in the browser despite sending different types of requests to server using multiple Laravel routes.
this.$inertia.put(`/task/${task_id}`, {order, category_id});
this.$inertia.visit(`/task/${task_id}`, {
method: 'put',
data: {order, category_id},
only: ['categories', 'msg'],
replace: true,
preserveState: true,
preserveScroll: true,
});
Does anybody have the idea, how I can preserve existing GET URL in the browser while send POST requests to server using Inertia JS?