Index: url_manager.php =================================================================== --- url_manager.php (revision 15437) +++ url_manager.php (working copy) @@ -366,10 +366,21 @@ */ public function getPhysicalTemplate($seo_template) { - $physical_template = array_search($seo_template, $this->structureTemplateMapping); + $physical_template = false; + $found_templates = array_keys($this->structureTemplateMapping, $seo_template); - if ( $physical_template === false || substr($physical_template, 0, 3) == 'id:' ) { - // physical template from ".smsignore" file OR virtual template + foreach ($found_templates as $found_template) { + if ( substr($found_template, 0, 3) == 'id:' ) { + // exclude virtual templates + continue; + } + + // several templates matched (physical and sym-linked to it) + $physical_template = $found_template; + } + + if ( $physical_template === false ) { + // physical template from ".smsignore" file return $seo_template; }