Jump to content

PrestaShop 1.7.x getting 500 error when redirecting inside module page


Recommended Posts

Try to use Tools::redirect function 

Tools::redirect(Context::getContext()->link->getModuleLink('your_module_name', 'module_controller'));

and getMoudleLink  is defined like this

    public function getModuleLink($module, $controller = 'default', array $params = array(), $ssl = null, $id_lang = null, $id_shop = null, $relative_protocol = false)

Also use debug mode to find what error is.

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...