[BUGFIX] Ensure backwards compatibility in element browser 18/28618/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Fri, 21 Mar 2014 18:34:14 +0000 (19:34 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Sun, 23 Mar 2014 10:41:39 +0000 (11:41 +0100)
commit2144d4c6e0f997f824e9dc41eb3eafb2b48a180d
treebbca59b702a1ca2715ad2ec7333a7ae3e8be0e92
parent69b35c833be379e3c49e210f5036d27b727416e3
[BUGFIX] Ensure backwards compatibility in element browser

Hooks that used the element browser used the JavaScript
function jumpToUrl with relative URLs.

After refactoring the element browser, it was necessary
to compute the absolute URL.

To stay backwards compatible we catch this case
in JavaScript and rewrite the URL according
to the new requirements.

By doing so, we can simplify our code again.

The method getThisScript might still be needed in
Hooks for other purposes, so we make it public.

Resolves: #56721
Releases: 6.2
Change-Id: Ieed6d037b428c5c15d18905341ff46dece1d67a7
Reviewed-on: https://review.typo3.org/28618
Reviewed-by: Ernesto Baschny
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Stefan Neufeind
Reviewed-by: Wouter Wolters
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/recordlist/Classes/Browser/ElementBrowser.php
typo3/sysext/rtehtmlarea/Classes/BrowseLinks.php