aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/block.class.php1
-rw-r--r--themes/default/template/menubar_identification.tpl1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/block.class.php b/include/block.class.php
index e8f091741..af84330bd 100644
--- a/include/block.class.php
+++ b/include/block.class.php
@@ -134,6 +134,7 @@ class BlockManager
global $template;
$template->set_filename('menubar', $file);
+ $template->assign(array('U_REDIRECT' => $_SERVER['REQUEST_URI']));
trigger_action('blockmanager_apply', array(&$this) );
foreach( $this->display_blocks as $id=>$block)
diff --git a/themes/default/template/menubar_identification.tpl b/themes/default/template/menubar_identification.tpl
index 703d6c87a..c0af6047d 100644
--- a/themes/default/template/menubar_identification.tpl
+++ b/themes/default/template/menubar_identification.tpl
@@ -28,6 +28,7 @@
{if isset($U_LOGIN)}
<form method="post" action="{$U_LOGIN}" id="quickconnect">
+ <input type="hidden" name="redirect" value="{$U_REDIRECT}">
<fieldset>
<legend>{'Quick connect'|@translate}</legend>
<div>