Index: branches/5.2.x/core/kernel/managers/url_manager.php =================================================================== diff -u -N -r15389 -r15528 --- branches/5.2.x/core/kernel/managers/url_manager.php (.../url_manager.php) (revision 15389) +++ branches/5.2.x/core/kernel/managers/url_manager.php (.../url_manager.php) (revision 15528) @@ -1,6 +1,6 @@ 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; }