View Revisions: Issue #359 |
[ All Revisions ] [ Back to Issue ] |
Summary |
0000359: Two different urls will lead to same physical template on Front-End |
|
Revision |
2009-10-08 11:40:08 by Dmitry |
|
Additional Information |
|
|
Revision |
2009-10-08 11:40:08 by Dmitry |
|
Additional Information |
I propose this fix:
1. during menu cache ("cms_menu" variable in Cache table) build also build special mapping (only for pages marked as IsMenu) where key is physical template name (plus path) and value is template name (plus path) used in url (e.g. Array ('terms' => 'terms-and-conditions')).
2. in m_Link tag, when given template name (with path) matches one, that is in mapping, then template name (with path) from mapping should be used.
Because st_CachedMenu only works with pages, that are marked as IsMenu, then proposed mapping will only cover that pages. Of course if anyone manually types physical template name in url, then it of course will be found too. |