[BUGFIX] Make ckeditor link browser not drop additional link params 09/57009/2
authorKevin Ditscheid <kevinditscheid@gmail.com>
Fri, 18 May 2018 14:13:49 +0000 (16:13 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Thu, 7 Jun 2018 11:28:04 +0000 (13:28 +0200)
Fix the link browser to not drop the additional link params if
editing a link with additional link params set.

Resolves: #85040
Releases: master, 8.7
Change-Id: I4c016f701b38e048aa999c4e96365019eae4a237
Reviewed-on: https://review.typo3.org/57009
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
Tested-by: Andreas Wolf <andreas.wolf@typo3.org>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/rte_ckeditor/Classes/Controller/BrowseLinksController.php

index 2fa9264..a241977 100644 (file)
@@ -173,6 +173,9 @@ class BrowseLinksController extends AbstractLinkBrowserController
             $this->currentLinkParts['type'] = $data['type'];
             unset($data['type']);
             $this->currentLinkParts['url'] = $data;
+            if (!empty($this->currentLinkParts['url']['parameters'])) {
+                $this->currentLinkParts['params'] = '&' . $this->currentLinkParts['url']['parameters'];
+            }
         }
 
         if (!empty($this->currentLinkParts['class'])) {