Need Help Redirecting a link to return URL - Joomla! Forum - community, help and support
i have component have given link users edit profile. have given link default user profile , have linked return url shown below:-
but doesn't seem work. code in view->tmpl->default.php of custom profile page. missing right unable troubleshoot it.
code: select all
<?php
$redirecturl = jroute::_("index.php?option=com_example&view=profile&userid=".$user[0]->id);
$redirecturl = urlencode(base64_encode($redirecturl));
$redirecturl = '&return='.$redirecturl;
?>
<a href=<?php $reguser = & jfactory::getuser();
echo jroute::_('index.php?option=com_users&view=profile&layout=edit&itemid='.$reguser->id); ?><?php echo $redirecturl;?>">edit profile</a>but doesn't seem work. code in view->tmpl->default.php of custom profile page. missing right unable troubleshoot it.
Comments
Post a Comment