Same model, different urls #5

bettercare opened this Issue Jul 19, 2010 · 2 comments


None yet
2 participants

ghost commented Jul 19, 2010

My site is localized, so that I have urls like and The former url shows an english profile for the user, and the later shows an arabic profile for the same user.

How do I go about adding both urls to the sitemap? I tried sitemap.add User, :path => 'en/users' and another with :path => 'ar/users', but only the last one is being generated.



ghost commented Jul 19, 2010

I solved it by monkey patching the gem. I added a new option :sitemap_filename, so now a sitemap for arabic urls and another one for english urls.
Is that a good way to solve this?


alexrabarts commented Jan 25, 2011

Hi, this should be fixed in version 0.8.2 (no need to add any options specifically for this case, although there are some other API changes, so please read the History.txt file if you upgrade).

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment