[BUGFIX] Make ckeditor link browser not drop additional link params 39/57139/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 12:43:03 +0000 (14:43 +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/57139
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
typo3/sysext/rte_ckeditor/Classes/Controller/BrowseLinksController.php

index 54bc6da..0a149e2 100644 (file)
@@ -173,6 +173,9 @@ class BrowseLinksController extends AbstractLinkBrowserController
             $this->currentLinkParts['type'] = $data['type'];
             unset($data['type']);
             $this->currentLinkParts['url'] = $data;
             $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'])) {
         }
 
         if (!empty($this->currentLinkParts['class'])) {