Index: branches/RC/core/units/general/helpers/mod_rewrite_helper.php =================================================================== diff -u -r8984 -r9549 --- branches/RC/core/units/general/helpers/mod_rewrite_helper.php (.../mod_rewrite_helper.php) (revision 8984) +++ branches/RC/core/units/general/helpers/mod_rewrite_helper.php (.../mod_rewrite_helper.php) (revision 9549) @@ -119,6 +119,15 @@ return true; } + function SetDefaultPages(&$vars) + { + // set module pages for all modules, since we don't know which module will need it + foreach ($this->Application->ModuleInfo as $module_name => $module_data) + { + $vars[ $module_data['Var'].'_Page'] = 1; + } + } + function ProcessModuleIndex(&$url_parts, &$vars) { if ( count($url_parts) > 1) return false; // if no more parts or only 1 part left @@ -445,7 +454,7 @@ } $this->ProcessCategory($url_parts, $vars); - + $this->SetDefaultPages($vars); if ( $this->ProcessModuleIndex($url_parts, $vars) ) { foreach ($this->Application->ModuleInfo as $module_name => $info) { $passed[] = $info['Var'];