Fixed problem where changing the number of results dispalyed per page redirected to wrong url