Different URL keys for different language CMS pages

Louis B. picture Louis B. · Jun 12, 2013 · Viewed 7.8k times · Source

I'm currently setting up a Magento shop that will support a few different languages.

One issue that I ran into is that I can't find out how to link two CMS pages together, so that when a user switches their language, they are automatically forwarded to the current CMS page but in their preferred language. One option would be to use the same URL key for both pages, but that wouldn't be very user friendly as some users would then see URL keys not in their native language.

Let me give you an example:

I have an "About us" page. In the English version of the store, the URL of that page is /about-us. Now a German user lands on that page and switches his language. But because the German equivalent to "About us" is "Über uns", the German version of that page is at /ueber-uns, so the user would be presented a 404 page because no German version of /about-us exists.

Does anybody know how to solve this issue?

Update: Did some more research and found nothing. I can't believe I am the only one with this problem? The go-to solution, using the same URL key for all languages, seems very ugly and not very user friendly!

Answer

Louis B. picture Louis B. · Jun 17, 2013

So, the only solution that I found was to manually create a redirect for each page in the Magento Rewrite Rules. Do do that, go to Catalog -> URL Rewrite Management and add each page in the following format:

enter image description here

So if a user is using the Francais store view and requests /url-in-english, the redirect will kick in and redirect the user to /url-in-french.

This is of course not an ideal solution, it would be preferred if two pages could be "linked" directly, but I suppose I will have to use this for the moment. If anybody comes up with a better solution feel free to add yours!