Joomla external URL redirect on successful login -
im looking override default joomla login redirect , use external url on succesful login (which doesn't seem possible within default joomla setup).
i found support doc:
https://docs.joomla.org/how_do_you_redirect_users_after_a_successful_login%3f
the code add follows.. correct?
$redirecturl = urlencode(base64_encode("http://subdomain.mydomain.com")); $joomlaloginurl = 'index.php?option=com_users&view=login'; $finalurl = $joomlaloginurl . $redirecturl;
but im not sure add code, in support doc says 'in administration end custom code'?
any appreciated.
the default login module of joomla loads menu item published in joomla. can create new menu item using type "system links -> external url" put external url in menu item.
that menu item show in module administration. need select it.
you modify php of module. module called mod_login in folder modules. might consider creating new module. download files, modifications, change mod_login.xml, in order change name of module, add name etc. zip whole folder , install through normal joomla installer. not have upgrade issues.
the file modify called helper.php in mod_login folder. on line 45 can edit:
return base64_encode($url);
and change to:
return base64_encode("http://your.url.com");
Comments
Post a Comment