Helper function to check if a page redirects correctly