Index: core/units/helpers/user_helper.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- core/units/helpers/user_helper.php (revision 16005) +++ core/units/helpers/user_helper.php (revision ) @@ -487,7 +487,11 @@ // merge back url params, because they were ignored if this was "external:" url $vars = array_merge($vars, $this->getRedirectParams($vars['pass'], 'pass')); + if ( $template != 'index' ) { + // The 'index.html' becomes '', which in turn leads to current page instead of 'index.html'. - $template = $vars['t']; + $template = $vars['t']; + } + unset($vars['is_virtual'], $vars['t']); $this->event->redirect = $template;