Sitemaps and escaping url’s

Had a few bugs in the sitemap created last week :( When calling rails url helpers with additional parameter array, the parameters are automatically escaped, e.g.

exercise_path(@exercise, :arr => [1, 2])

will produce the following string:

/exercises/1?arr%5B%5D=1&arr%5B%5D=2.

So because of this I had them double encoded and Google Webmaster Tools only picked up only the first parameter.

I now gotta wait couple of days to see how Google will like the new sitemap :)

Leave a Reply