Add maxSameRedirects option
Now we can handle redirects to the same page with a limit (to avoid infinite loop). The default limit is 1.