Closed fritzmg closed 4 years ago
Ah, I see that feature to force an absolute url was added in Contao 4.5 and is not available in Contao 4.4.
As discussed in Slack I have updated the PR, adding a static function to generate the FAQ url, similar to how the other functions work.
Thanks @fritzmg
Currently the URL generated for faq, news and events is not necessarily an absolute URL, since
News::generateNewsUrl
usesgetFrontendUrl
and notgetAbsoluteUrl
- andgetFrontendUrl
only returns an absolute URL, if the current domain differs from the generated domain.This PR prepends the scheme and host if the generated URL is not absolute.