Index: branches/5.1.x/core/units/helpers/user_helper.php =================================================================== diff -u -N -r14351 -r14478 --- branches/5.1.x/core/units/helpers/user_helper.php (.../user_helper.php) (revision 14351) +++ branches/5.1.x/core/units/helpers/user_helper.php (.../user_helper.php) (revision 14478) @@ -1,6 +1,6 @@ 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: branches/5.1.x/core/units/users/users_tag_processor.php =================================================================== diff -u -N -r14364 -r14478 --- branches/5.1.x/core/units/users/users_tag_processor.php (.../users_tag_processor.php) (revision 14364) +++ branches/5.1.x/core/units/users/users_tag_processor.php (.../users_tag_processor.php) (revision 14478) @@ -1,6 +1,6 @@ '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); }