Page url updates after livewire re renders page

I am working with laravel 8 and uisng livewire 2.x to create some of my pages in a project.
On one of my pages though, the url of the page updates automatically after updating the component. Thus the url updates after update through wire:model and also calling a method in the component also updates the url.

Steps to Reproduce:

  1. I have the following form
<form wire:submit.prevent='save'>
  <input type='text'  wire:model='name' />
  <input type='text' wire:model='title' />
  <button type='submit'>Send </button>
</form>
  1. This is the initial url example https://example.com/test/4tgs3s8fd/create?id=99
  2. This is what it updates to after the page is re-rendered by a property update or method call, https://example.com/1/create?id=99
  3. The 4tgs3s8fd is the unique ID of the model I am loading in the component but it updates to a different number like 1 after page re-render.

Anyone experienced this before? How do I solve it?

Hi,
If you are updating the URL , why you are using realtime update for that operation ?
For that case I will use wire.model.defer to update that URL when the user click on save button then you can redirect to the new URL with the updated data.
Let me know if that solve your problem.

Lance, would you share your route::get for this url and the respective livewire controller?