Fixed bug with total pages and Google redirect URL generation.