In development mode, it should not redirect to https://…
The default settings only enable that for production mode.
I would try to change that setting back to default so that it goes to
http://localhost/login.
This could be the problem if the rest of the site works.
Andrew