fixed bug /products?per_page redirect_to localhost