Detect current page.