I have a store with both English and German views

The tree structure has both language versions, so I have manually changed Product to equal Produkte in the category section for example.

My problem is how to handle links in such a setup. In the main product page, I have a link such as this: href="{{store direct_url='products/phones.html'}}"

When I change to the German view, that link returns a 404. It doesn't automatically redirect to the german version which is produkte/fones.html (as an example).

Shouldn't it automatically redirect? I don't have to recode all my links by hand do I ?


adding some additional information to clarify the issue>

the category structure of the shop is setup in both English and German. The categories have been translated, so when you are in the EN shop and change to the DE shop, then menus update and work correctly.

So, the 'phones' menu item becomes 'fones' - and works as expected.

In my landing page, I have the same link hardcoded (as above). How can I get it to goto the right page automatically?

  • OK. Is there a work around for the links however? Thanks.
    – egg
    Aug 20, 2014 at 9:51
  • 2
    As you are hardcoding the links inline you will have to rewrite them.
    – Eirik
    Aug 20, 2014 at 12:54
  • ok, thanks for your reply. Not the answer I wanted - but I will have to simply deal with it :) I wonder if there is a better way to handle such links in future, to avoid that problem? If I were to use the category ID, it would be simpler I guess? But then not so user friendly...
    – egg
    Aug 22, 2014 at 6:23

2 Answers 2


In the CMS pages and the static blocks you should use the Catalog Category Link widget:

{{widget type="catalog/category_widget_link" template="catalog/category/widget/link/link_block.phtml" id_path="category/5"}}

If you use this the correct links will be built on each store and you won't have to rewrite them.


I am not sure if this works also for direct_url's but you might also be interested in the Magento Languages URL's extension:


Magento Language Routes


  • Translate all URLs for each store (e.g. /customer/account/create -> /kunde/konto/erstellen)
  • Easy translation without development skills by using the backend
  • Translate third party extensions out of the box
  • Ability to translate URLs to CMS pages, too
  • Extension uses the Magento Cache to avoid performance issues
  • Manage permissions for translations by roles
  • Old URLs are still working (even if they translated)
  • Inline-Translation of URLs

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.