Created
June 21, 2012 08:39
-
-
Save 2dpi/2964610 to your computer and use it in GitHub Desktop.
Joomla - Redirect to same page after login
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// redirect to same page | |
$uri = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; | |
$uri = base64_encode($uri); | |
// replace $return with $uri | |
<input type="hidden" name="return" value="<?php echo $uri; ?>" /> | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment