Zohaib-fk Posted October 8, 2017 Share Posted October 8, 2017 (edited) Hi, I am trying to redirect page inside module to another page in module.I am getting 500: Internal Error - This website is unavailable at the moment I tried accessing module page directly from browser but no success.https://mydomain/myinstance/modules/mymodule/mypage.phpAny idea? Edited October 8, 2017 by zohaib82 (see edit history) Link to comment Share on other sites More sharing options...
razaro Posted October 8, 2017 Share Posted October 8, 2017 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 More sharing options...
Zohaib-fk Posted October 8, 2017 Author Share Posted October 8, 2017 Hi, Thanks , I will check this solution.I was using code below Tools::redirectLink($URL); exit; 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