I may have found the culprit. I uninstalled Edwiser Report plugin and the redirect seems to have stopped. I'll let you know if this changes. So if you don't want automatic redirect, don't install Edwiser Report 1.0 version.
General help
Why is Moodle redirecting to the login page
This discussion has been locked so you can no longer reply to it.