I'm currently implementing a multilanguage store in magento enterprise using german and french store views. one of the requirements is that paths are translated. as an example, I'm trying to link the cms page for the ToS in the layout's footer:
defined cms pages:
- "AGB" (german, url key: 'page-info-tos', store view 'de')
- "CGV" (french, url key: 'page-info-tos', store view 'fr')
defined redirects:
- "agb" → "page-info-tos"; store view 'de'; no redirect
- "cgv" → "page-info-tos"; store view 'fr'; no redirect
- "cgv" → "agb"; store view 'de'; 301-redirect
- "agb" → "cgv"; store view 'fr'; 301-redirect
code in footer.phtml:
<a href="<?php echo $this->getUrl('page-info-tos');"><?php echo $this->__('ToS'); ?></a>
resulting html:
<a href="/de/page-info-tos">AGB</a>
resp <a href="/fr/page-info-tos">CGV</a>
wanted html:
<a href="/de/agb">AGB</a>
resp <a href="/fr/cgv">CGV</a>
how can I lookup the correct request path for the given cms page url key?