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:
- 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>
- This is the initial url example https://example.com/test/4tgs3s8fd/create?id=99
- 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
- The 4tgs3s8fdis 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?