Index: trunk/core/kernel/session/session.php =================================================================== diff -u -r4880 -r5013 --- trunk/core/kernel/session/session.php (.../session.php) (revision 4880) +++ trunk/core/kernel/session/session.php (.../session.php) (revision 5013) @@ -679,7 +679,7 @@ function SaveData() { - if (!$this->Application->GetVar('skip_last_template')) { + if (!$this->Application->GetVar('skip_last_template') && $this->Application->GetVar('ajax') != 'yes') { $t = $this->Application->GetVar('t'); $last_env = $this->Application->BuildEnv($t, Array('m_opener' => 'u', '__URLENCODE__' => 1), 'all'); $last_template = basename($_SERVER['PHP_SELF']).'|';