fix page_url and sort_url