Index: trunk/core/kernel/application.php =================================================================== diff -u -r5026 -r5027 --- trunk/core/kernel/application.php (.../application.php) (revision 5026) +++ trunk/core/kernel/application.php (.../application.php) (revision 5027) @@ -1316,7 +1316,10 @@ if( isset($params['js_redirect']) ) unset($params['js_redirect']); if (!isset($params['pass'])) $params['pass'] = 'all'; - if ($this->GetVar('ajax') == 'yes') $params['ajax'] = 'yes'; + if ($this->GetVar('ajax') == 'yes' && $t == $this->GetVar('t')) { + // redirects to the same template as current + $params['ajax'] = 'yes'; + } $params['__URLENCODE__'] = 1; $location = $this->HREF($t, $prefix, $params, $index_file);