Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently, SecureLoginManager::secureRedirect() just switches http:// for https:// . This works ok for most sites, since the browser takes care of switching to port 443 for HTTPS.
But sometimes we need to run a site on a particular port. Eg: I have a site on port 8080, with HTTPS on port 8443. In this case, Secure Login will redirect to things like https://localhost:8080 , which doesn't do the right thing.
It would be great if Secure Login could somehow specify to use the right port. Maybe by applying base_url to redirects?
Comments
Comment #2
mfbThis is already supposed to work but for some reason it's not.
Comment #4
mfbThanks for reporting!
This should be fixed in the dev branch.
Please test it there.
Comment #5
mfbAnyone have time to test out the dev branch? It works in my testing, so I'm planning to release it soon...