Closed bytehead closed 5 years ago
Afaik we use PageModel::generateAbsoluteUrl()
. Does your root page config include the port?
Nope it doesn't and has never before. I think something changed with the introduced cmf router in Contao 4.7.
Regardless of that, it must be a Contao core issue. Can you open an issue there?
Hmm, Contao generates the urls correctly (with the port included). Sounds weird, but it is the case. I'll investigate a little bit more.
It happens because of the rootUseSSL
setting. Uses wrong port, if rootUseSSL = false
but the page is requested via https (see also https://github.com/contao/contao/pull/350).
So known limitation 🙂
Affected version(s)
3.1.11 with Contao 4.7.x
Description
The
href
of the change language link doesn't include any port from the origin uri.How to reproduce
Run your installation on
the internal PHP server or withthe symfony cli on a specific port, likehttps://127.0.0.1:8000
.Target state (example):
https://127.0.0.1:8000/en
Actual state (example):
https://127.0.0.1/en
Update: Maybe it's just related to the symfony cli and/or cmf routing?