Index: trunk/core/units/general/main_event_handler.php =================================================================== diff -u -N -r8397 -r8478 --- trunk/core/units/general/main_event_handler.php (.../main_event_handler.php) (revision 8397) +++ trunk/core/units/general/main_event_handler.php (.../main_event_handler.php) (revision 8478) @@ -82,7 +82,7 @@ } $ret .= $theme_name.'/'; } - + if ($processed_params['m_cat_id'] > 0 && isset($url_params['pass_category']) && $url_params['pass_category']) { $category_filename = $this->Application->getFilename('c', $processed_params['m_cat_id']); $t = isset($url_params['t']) && $url_params['t'] ? $url_params['t'] : false; @@ -116,6 +116,11 @@ $template = getArrayValue($url_params, 't'); $category_template = $processed_params['m_cat_id'] ? $this->Application->getCache('category_templates', $processed_params['m_cat_id']) : ''; + if ((strtolower($template) == '__default__') && ($processed_params['m_cat_id'] == 0)) { + // for "Home" category set template to index when not set + $template = 'index'; + } + // remove template from url if it is category index cached template if ($template == $category_template || strtolower($template) == '__default__') { $template = '';