Changed if to page.url