Only go to a page if it isn't the same as the current page.