Index: branches/5.1.x/core/kernel/utility/http_query.php =================================================================== diff -u -N -r13489 -r13490 --- branches/5.1.x/core/kernel/utility/http_query.php (.../http_query.php) (revision 13489) +++ branches/5.1.x/core/kernel/utility/http_query.php (.../http_query.php) (revision 13490) @@ -1,6 +1,6 @@ processRewriteURL(); } - if (!defined('GW_NOTIFY') && !$rewrite_url && preg_match('/[\/]{0,1}index.php[\/]{0,1}/', $_SERVER['PHP_SELF'])) { + if (!defined('GW_NOTIFY') && !$rewrite_url && preg_match('/[\/]{0,1}index.php[\/]{0,1}/', $_SERVER['PHP_SELF']) && ($this->Get('t') != 'index')) { // not in payment gateway notification script AND // rewrite url is missing AND not a script from tools folder AND // "index.php" was visited + // not on index page $url_params = $this->getRedirectParams(); // no idea about how to check, that given template require category to be passed with it, so pass anyway