Check page.categories not the url path for api