-
-
Notifications
You must be signed in to change notification settings - Fork 214
Fix news feeds in multidomain setups (#8327) #8329
Conversation
I have updated the pull request. Now news entries with redirect targets to pages or articles will also have the correct absolute link in the news feed. |
The changes are not correct. The |
The $strBase . $objTarget->getFrontendUrl(); so, this might result in either
because So the resulting URL might result in something like
in multidomain setups as shown in #8327.
Yes, the structure is different, but as far as I can see the news feed generation for events will also be wrong in multidomain setups, because it also uses $strBase . $objTarget->getFrontendUrl(); |
|
But that would break the backwards compatibility, wouldn't it? Someone might use the |
Correct. Then we need a fourth parameter I guess. |
Btw. this is also a case where a i.e. return $strBase ? $strBase . $objTarget->getRelativeUrl() : $objTarget->getAbsoluteUrl() |
Fixed in d16c629. |
When using Contao in a multidomain setup, the news feed might contain the wrong links to the items (see #8327). This simple change should fix it completely.