Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AlbertLens's avatar

Need Nova Action redirect outside NOVA (not to a Nova resource) and is not working using redirect()->action(...)

Hi. All my resources are inside NOVA (products, contracts, users, etc.) working fine. The problem is that NOVA has no signature pad field or similar and I need the user to accept the terms and sing with his finger. I have used the Laravel SignaturePadController, which launched manual is working fine and saves the file as a PNG image. The problem is that from ONE ROW in the Nova resource index page I have to launch the ACTION with a button and it has to redirect to that signaturepad blade view BUT with data from the row clicked. So I am trying to use: return redirect()->action( [SignaturePadController::class, 'myRedirectMethod'],$models ); and it throws an error saying: Action App\Http\Controllers\SignaturePadController@myRedirectMethod not defined.

But the controller is there under App\Http\Controllers\ and the name is correct SignaturePadController.php and inside it I have created the method or function: public function myRedirectMethod($data){ return view('signaturePad',$data); }

Any ideas of how to link a Nova Action to an external controller and method???

Thank you very much.

0 likes
2 replies
Shaden's avatar

Hi In Action you can do this, I doubt you can do it inside the code of Nova I usually make full url a with route defined in web.php, you cannot redirect to a controller

 return Action::redirect(config('app.url') . '/route/view/' . $id);

AlbertLens's avatar

@Shaden Hello and thank you for your reply.

Finally I did not find a solution either. I am also using a relative route such as:

return Action::redirect('../signaturePadPrevia?id='.$models[0]->id);

and then, using JavaScript, I am triggering the button automatically to redirect to a Laravel (NOT NOVA) route such as signature/{id} and there in the controller do the actions and get the user back to nova/resource.

Well, it is not the best idea but working for the moment.

Tks again.

Please or to participate in this conversation.