Index: branches/RC/core/units/categories/categories_event_handler.php =================================================================== diff -u -r11866 -r11869 --- branches/RC/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 11866) +++ branches/RC/core/units/categories/categories_event_handler.php (.../categories_event_handler.php) (revision 11869) @@ -483,6 +483,25 @@ */ function getPassedID(&$event) { + if (($event->Special == 'page') || ($event->Special == '-virtual') || ($event->Prefix == 'st')) { + return $this->_getPassedStructureID($event); + } + + if ($this->Application->IsAdmin()) { + return parent::getPassedID($event); + } + + return $this->Application->GetVar('m_cat_id'); + } + + /** + * Enter description here... + * + * @param kEvent $event + * @return int + */ + function _getPassedStructureID(&$event) + { static $page_by_template = Array (); if ($event->Special == 'current') {