Index: branches/unlabeled/unlabeled-1.155.2/core/kernel/application.php =================================================================== diff -u -r5897 -r5904 --- branches/unlabeled/unlabeled-1.155.2/core/kernel/application.php (.../application.php) (revision 5897) +++ branches/unlabeled/unlabeled-1.155.2/core/kernel/application.php (.../application.php) (revision 5904) @@ -1069,10 +1069,17 @@ unset($params['__NO_REWRITE__']); } + $force_rewrite = false; + if( isset($params['__MOD_REWRITE__']) ) + { + $force_rewrite = true; + unset($params['__MOD_REWRITE__']); + } + // append pass through variables to each link to be build $params = array_merge_recursive2($this->getPassThroughVariables($params), $params); - if ($this->RewriteURLs($ssl) && !$no_rewrite) + if ($force_rewrite || ($this->RewriteURLs($ssl) && !$no_rewrite)) { $session =& $this->recallObject('Session'); if( $session->NeedQueryString() ) $params['sid'] = $this->GetSID();