Table `recordAction()` with redirect

Hi all. When a table row is clicked, I need to run some code to generate a URL then redirect to it. It's a SSO link so it has to be generated on click (so I can't use recordUrl). Does anyone know how I could do this? I've played around with recordAction but haven't been able to find a working solution.
Solution:
Yeah I tried that, didn't work unfortunately. I ended up figuring it out. You need to add the action to ->actions() and then just call it by name eg ->recordAction('myAction') . Thanks for the suggestion though.
Jump to solution
2 Replies
krekas
krekas3mo ago
have you tried in the recordAction livewire redirect? https://livewire.laravel.com/docs/redirecting
Laravel
Redirecting | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
Solution
binaryfire
binaryfire3mo ago
Yeah I tried that, didn't work unfortunately. I ended up figuring it out. You need to add the action to ->actions() and then just call it by name eg ->recordAction('myAction') . Thanks for the suggestion though.