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
lodeki
lodeki9mo ago
Hi, you got a solution?
dododedodonl
dododedodonlOP9mo ago
GitHub
Disable `wire:navigate` by bert-w · Pull Request #11700 · filame...
Description This PR adds the ability to add :allow-browser-navigation=&quot;false&quot; to the &lt;x-filament::button&gt; component. Adding this attribute disables the addition of w...
Want results from more Discord servers?
Add your server