From 58abaf0821f5814177bb24ef2795b0b7d732312c Mon Sep 17 00:00:00 2001 From: Benjamin Mack Date: Thu, 26 Mar 2015 15:04:11 +0100 Subject: [PATCH] [TASK] Make Backend Module URLs absolute In the approach to remove all occurences of dealing with relative URL referencing in the TYPO3 Backend, the main mod.php calls are now always prefixed with "/{possiblesubfolder/}typo3/" so no backPath parameter and calculations are needed anymore. The patch thus removes all locations of the JavaScript variable "top.TS.PATH_typo3" containing the backpath and makes the "relative" path to BackendUtility::getModuleUrl() always a absolute prefix relative to the PATH_typo3 structure. Resolves: #66052 Releases: master Change-Id: Ie8192f227b8d1715be90efff8746482adf252ac7 Reviewed-on: http://review.typo3.org/38246 Reviewed-by: Markus Klein Tested-by: Markus Klein Reviewed-by: Georg Ringer Tested-by: Georg Ringer Reviewed-by: Benjamin Mack Tested-by: Benjamin Mack --- Classes/FrontendEditPanel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/FrontendEditPanel.php b/Classes/FrontendEditPanel.php index 876992b..2f0df39 100644 --- a/Classes/FrontendEditPanel.php +++ b/Classes/FrontendEditPanel.php @@ -207,7 +207,7 @@ class FrontendEditPanel { $iconImg = $conf['iconImg'] ? $conf['iconImg'] : ''; $nV = GeneralUtility::_GP('ADMCMD_view') ? 1 : 0; $adminURL = GeneralUtility::getIndpEnv('TYPO3_SITE_URL') . TYPO3_mainDir; - $icon = $this->editPanelLinkWrap_doWrap($iconImg, $adminURL . BackendUtility::getModuleUrl('record_edit', array('edit[' . $table . '][' . $editUid . ']' => 'edit', 'columnsOnly' => rawurlencode($fieldList), 'noView' => $nV)) . $addUrlParamStr); + $icon = $this->editPanelLinkWrap_doWrap($iconImg, $adminURL . BackendUtility::getModuleUrl('record_edit', array('edit[' . $table . '][' . $editUid . ']' => 'edit', 'columnsOnly' => $fieldList, 'noView' => $nV)) . $addUrlParamStr); if ($conf['beforeLastTag'] < 0) { $content = $icon . $content; } elseif ($conf['beforeLastTag'] > 0) {