When you visit a page where the query string contains an array (can easily happen on pages such as views with exposed date filters) then the redirect breaks because the query string array is converted into the string 'Array'.

For example, the url:
http://mysite.com/test-view?date_filter[min][year]=2006&date_filter[min][month]=1&date_filter[min][day]=1&date_filter[max][year]=2007&date_filter[max][month]=1&date_filter[max][day]=12
it gets redirected to:
http://m.mysite.com/test-view?date_filter=Array

Which breaks because the date filter doesn't get what it is expecting.

Files: 

Comments

Status:Active» Needs review
StatusFileSize
new714 bytes

Here is a patch that fixes it for me.