Url of footer links broken, realurl not respected
In version 3.x of sg_cookie_optin and TYPO3 8.7, the links in footer section of cookie box are broken if we use realurl for links. The saved url in json files for the language looks like this:
?id=124&disableOptin=1&L=1
Now the link in cookie box becomes an href attribute with exactly this link. We don't use a base url. The generated url is just appended to the current page url. Which results in this url:
https://www.mydomain/en/my-page/?id=124&disableOptin=1&L=1
That won't work. I'm not sure whether the problem is in our configuration or not. Has nobody here a similar problem? I can't found an issue for this topic ;-). I found this line
$url = $contentObject->getTypoLink_URL($uid, '&disableOptIn=1&L=' . $languageUid);
in sg_cookie_optin/Classes/Hook/GenerateFilesAfterTcaSave.php
file. But I'm not sure that is the problem. Maybe the TYPO3 version or realurl version or my realurl configuration.I have a TYPO3 instance 7.6 with sg_cookie_optin 2.x and there are no problems with the urls of the footer-links
Any idea? Can anybody reproduce this error?
For the moment I patched the sg_cookie_optin/Classes/Hook/GenerateFilesAfterTcaSave.php
and prepending the url with a /
. But for sure, that's just a dirty workaround to fix the problem temporarly.