Skip to content

Instantly share code, notes, and snippets.

@2dpi
Created June 21, 2012 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2dpi/2964610 to your computer and use it in GitHub Desktop.
Save 2dpi/2964610 to your computer and use it in GitHub Desktop.
Joomla - Redirect to same page after login
<?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