Index: branches/unlabeled/unlabeled-1.9.2/core/units/general/helpers/mod_rewrite_helper.php =================================================================== diff -u -r8275 -r8299 --- branches/unlabeled/unlabeled-1.9.2/core/units/general/helpers/mod_rewrite_helper.php (.../mod_rewrite_helper.php) (revision 8275) +++ branches/unlabeled/unlabeled-1.9.2/core/units/general/helpers/mod_rewrite_helper.php (.../mod_rewrite_helper.php) (revision 8299) @@ -318,6 +318,7 @@ if ($template_found) { $vars['m_cat_id'] = $template_found['CategoryId']; $vars['t'] = implode('/', $url_parts); + $vars['is_virtual'] = true; // for template from POST return true; } } @@ -368,7 +369,11 @@ if (isset($this->HTTPQuery->Post['t']) && $this->HTTPQuery->Post['t']) { // template from POST overrides template from URL. $vars['t'] = $this->HTTPQuery->Post['t']; + if (isset($vars['is_virtual']) && $vars['is_virtual']) { + $vars['m_cat_id'] = 0; // this is virtual template category (for Proj-CMS) + } } + unset($vars['is_virtual']); } foreach ($vars as $name => $value) {