Index: branches/RC/core/kernel/utility/http_query.php =================================================================== diff -u -N -r10535 -r11296 --- branches/RC/core/kernel/utility/http_query.php (.../http_query.php) (revision 10535) +++ branches/RC/core/kernel/utility/http_query.php (.../http_query.php) (revision 11296) @@ -84,6 +84,12 @@ $this->Order = $order; $this->Admin = $this->Application->IsAdmin(); // better cache this value, not to calculate it each time in foreach + + if (array_key_exists('HTTP_X_REQUESTED_WITH', $_SERVER) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') { + // when AJAX request is made from jQuery, then create ajax variable, + // so any logic based in it (like redirects) will not break down + $_GET['ajax'] = 'yes'; + } } function Init($prefix, $special)