Same model, different urls #5

Closed
bettercare opened this Issue Jul 19, 2010 · 2 comments

Comments

Projects
None yet
2 participants
@ghost

ghost commented Jul 19, 2010

My site is localized, so that I have urls like http://example.com/en/users/1 and http://example.com/ar/users/1. 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.

Ideas?

@ghost

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?

Owner

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