Redirect::route with long parameters works locally but not on server
Hello.
I have been trying to find a solution for exporting a PDF with the information on the table seen but with the filtered data. To do so, I do a return Redirect::route passing thedata and arrays, which is quite long, but works fine locally. My code is this:
I have been working a lot to achieve this and now it works fine locally but when I have deployed to the server it throws an uncontrolled error "THIS WEBSITE CANNOT BE ACCESSED".
The result of the redirect is very long, as you can see in the attached image. Any ideas of how can I solve this or get around to the way I send the FILTERED info to the controller?
This is my controller, which gets the filtered array:
Maybe my approach is incorrect but it is working locally for me. Any ideas will be highly appreciated.
Thank you.
1 Reply
I have considerably reduced the size of the url and now it works, though I think this is not the right approach.
Anyhow, I still think this is not the right approach because when user has thousands of records filtered, I do not know whether the url size will work on production server.
Please any ideas of the right approach to pass FILTERED table data to CONTROLLER ?
Tks.