Index: branches/RC/core/kernel/processors/main_processor.php =================================================================== diff -u -N -r9581 -r9841 --- branches/RC/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 9581) +++ branches/RC/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 9841) @@ -934,12 +934,17 @@ // check by belonging to group: end if ((!$this->Application->LoggedIn() || !$group_access) && $condition) { + $redirect_params = $this->Application->HttpQuery->getRedirectParams(); + $redirect_params['next_template'] = $t; + + if (array_key_exists('pass_category', $params)) { + $redirect_params['pass_category'] = $params['pass_category']; + } + if ( $this->Application->LoggedIn() && !$group_access) { - $this->Application->Redirect( $params['no_group_perm_template'], Array('next_template'=>$t) ); + $this->Application->Redirect( $params['no_group_perm_template'], $redirect_params); } - $redirect_params = $this->Application->HttpQuery->getRedirectParams(); - $redirect_params['next_template'] = $t; $this->Application->Redirect($params['login_template'], $redirect_params); } }