Move get_url_current_page method from page to pages/page