albertfajarito Posted November 7, 2014 Share Posted November 7, 2014 (edited) I am using this code to redirect: Tools::redirect('index.php?controller=authentication&action=warning&message=' . $message); but the $message param gets lost. How do I properly pass values using redirect in prestashop? P.S. Url rewrite is enabled Edited November 7, 2014 by albertfajarito (see edit history) Link to comment Share on other sites More sharing options...
FullCircles Posted November 7, 2014 Share Posted November 7, 2014 After it's done the redirect, is the url still displaying: index.php?controller=authentication&action=warning&message=(text here) Or has it done some form of further redirect after? Just had a test and mine didn't redirect, so might be another issue Have a check whether the data is being url encoded, might be losing it due to that. If it's not, you can change the code like this to make it work: Tools::redirect('index.php?controller=authentication&action=warning&message=' . urlencode($message)); Hopefully it's one of those two issues and that sorts it, if not, let me know some more details and will look into it further Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now