Index: trunk/core/units/general/helpers/mod_rewrite_helper.php =================================================================== diff -u -N -r6428 -r6791 --- trunk/core/units/general/helpers/mod_rewrite_helper.php (.../mod_rewrite_helper.php) (revision 6428) +++ trunk/core/units/general/helpers/mod_rewrite_helper.php (.../mod_rewrite_helper.php) (revision 6791) @@ -429,6 +429,19 @@ } if ( $this->ProcessPage($url_parts, $vars) ) { + if (count($passed) == 1) {// passed contains only 1 value which is 'm' + // this may be search results page, so we need to find out the module, especially for old in-portal + foreach ($this->Application->ModuleInfo as $module_name => $module_data) + { + if (!$module_data['TemplatePath']) continue; + if( preg_match('/^'.preg_quote($module_data['TemplatePath'], '/').'/i', $vars['t']) ) + { + $module_prefix = $module_data['Var']; + break; + } + } + $passed[] = $module_prefix; + } return $vars; }