[BUGFIX] Allow linking to a targetSite without currentSite 97/58397/2
authorSusanne Moog <susanne.moog@typo3.org>
Wed, 26 Sep 2018 08:49:15 +0000 (10:49 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Thu, 27 Sep 2018 13:09:24 +0000 (15:09 +0200)
commit5360a8f68557fe329801d1c0c17f6f7fb790b339
treec23b4cdb6a7077f6c0b760899ea1700bbbda38b9
parentc7cb49521f7766c6023035e3add418b999428df5
[BUGFIX] Allow linking to a targetSite without currentSite

In case no current site exists in a context (for example currently
eID or other scripting contexts), the pageLinkBuilder threw an error
when linking to a page with a site configuration. The necessity for
having a current site config has been removed, the pageLinkBuilder
can now be used without a current site object and will then always
generate absolute URLs to the target site.

Resolves: #86384
Releases: master
Change-Id: Id8c984c4ac3837d7b4da37a99d43410c6db34187
Reviewed-on: https://review.typo3.org/58397
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Henning Liebe <h.liebe@neusta.de>
Tested-by: Henning Liebe <h.liebe@neusta.de>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php