Redirect in SPA mode
When using a
<x-filament::button ...>
component to go to a internal route (eg. example.test/route1), which almost always redirects (302) to an external url. Because the href on the button is an internal url, Filament\Support\generate_href_html
adds wire:navigate
to the button. This does not work, as the external resource has CORS headers preventing this.
How can I use <x-filament::button ...>
in SPA mode and prevent wire:navigate
added to it?2 Replies
Hi, you got a solution?
Yes; this PR: https://github.com/filamentphp/filament/pull/11700/files
GitHub
Disable
`
wire:navigate` by bert-w · Pull Request #11700 · filame...Description
This PR adds the ability to add :allow-browser-navigation="false" to the <x-filament::button> component. Adding this attribute disables the addition of w...