Index: units/helpers/user_helper.php =================================================================== --- units/helpers/user_helper.php (revision 14472) +++ units/helpers/user_helper.php (working copy) @@ -233,7 +233,8 @@ $this->Application->resetCounters('UserSession'); $this->Application->Session->SetCookie('remember_login', '', strtotime('-1 hour')); - $this->event->SetRedirectParam('pass', 'all'); + // don't pass user prefix on logout, since resulting url will have broken "env" + $this->event->SetRedirectParam('pass', MOD_REWRITE ? 'm' : 'all'); } /** Index: units/users/users_tag_processor.php =================================================================== --- units/users/users_tag_processor.php (revision 14472) +++ units/users/users_tag_processor.php (working copy) @@ -19,7 +19,7 @@ function LogoutLink($params) { - $pass = Array('pass' => 'all,m,u', 'u_event' => 'OnLogout', 'm_cat_id'=>0); + $pass = Array('pass' => 'all,m,u', 'u_event' => 'OnLogout', 'm_cat_id' => 0, '__NO_REWRITE__' => 1); $logout_template = $this->SelectParam($params, 'template,t'); return $this->Application->HREF($logout_template, '', $pass); }