generalized pagination_path