Added next_url param to get_next_url()