use redirect_to_path when generating page url