Jump to content

Prestashop module redirection error


juanjico

Recommended Posts

Hello!


I'm programming a module to Prestashop. It's wqorking fine, except for a redirection link.


This is the code:



Tools::redirectLink(__PS_BASE_URI__.'modules/mymodule/page.php?err=f&key='.$rid_key.'&id_cart='.$rid_cart.'&id_module='.$rid_module.'&id_order='.$rid_order);

Then the browser redirects to:



http://mydomain/index.php?controller=modules/mymodule/page?err=f&key=c0acad8c21e44ed574df023c1dd11c17&id_cart=93&id_module=86&id_order=934251

But this generates a prestashop error 404 not found.


I'm a bit lost.


I have enabled debug in settings, but no error is displayed. Any idea in how to debug this ?


Thanks!


Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...