Url not changing after some navigations in SPA mode
When navigating a few times, the url stops changing into the new route (stays on the old one), even though the actual page content does change. I've tested this in Chrome and Safari with a fresh Laravel 12 + Filament v4 install, see the attached video (i performed a clean install, added a custom page and enabled SPA mode). I've seen the same thing happen in one of my other apps running Filament v3.
After waiting a few seconds and then navigating to another page, the url does change again.
Chrome logs a warning when this happens, see the attached screenshot. I looked into this warning and found a Livewire PR https://github.com/livewire/livewire/pull/9278 which may be related, however that doesn't seem to have fixed this specific issue.
I'm asking here because i'm unable to reproduce it in a Livewire application.
Any guidance or solution would be helpful, or some direction on where to look to investigate this further. Thanks!
After waiting a few seconds and then navigating to another page, the url does change again.
Chrome logs a warning when this happens, see the attached screenshot. I looked into this warning and found a Livewire PR https://github.com/livewire/livewire/pull/9278 which may be related, however that doesn't seem to have fixed this specific issue.
I'm asking here because i'm unable to reproduce it in a Livewire application.
Any guidance or solution would be helpful, or some direction on where to look to investigate this further. Thanks!
Solution
I've created a view with the JS code and used Filament's render hooks to render it.
In a service provider;
navigation-fix.blade.phpIn a service provider;