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