Fixed the pagination in the redirects module and update is_mobile to properly identify iPad/tablet devices

Fix pagination in redirects module: Limit needed to be set when visiting a different page.

Fix is_mobile for iPad/tablets: If mobile is set and contains generic, but desktop is also set (as is the case with the iPad) then prefer desktop