Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Remove servername and port from portal url generation #15833
When the dotCMS generates a portal URL, it tries to figure out and include the servername, scheme and port.
When running behind a proxy, like when in our docker stack, if you try to run the stack on a non-standard port where dotCMS thinks it is running on one port rather than on another, it gets the generated url wrong. In fact, dotCMS doesn't and can't know what port it is answering on in our docker stack without a plugin and that should not be a requirement.
With the change, it goes from this: