On successful login it's meant to redirect you to a localhost site, that's normal. If you clear your browser cache (or change which browser you use) the problem should go away.
You should double check if the URL in the browser starts with https:// or http://. I should be http://, without the `s`. If it has an `s` then your browser is trying to be clever and force redirect. Try to find and disable a setting along the lines of "Always use HTTPS" or set a different web browser as default.