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?
Was this page helpful?