-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix redirect during initial setup #28995
Conversation
Signed-off-by: Louis Chemineau <louis@chmn.me>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally and works. Thanks for fixing this :)
/backport to stable22 |
/backport to stable21 |
/backport to stable20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Well, that was fast, thanks for the quick review :) |
$this->request->getServerHost()
return an empty string during the initial setup as it validate the request's domain against the trusted domains list.Combined with the recently added cache of
URLGenerator->baseUrl
, this leads to a wrong redirect during the initial setup process.This PR adds a check to ensure that the cached
baseUrl
is not used if it only contains the protocol.Fix: #27575