Project

General

Profile

Actions

Bug #55739

closed

typoLink() does not consider additional params for external urls

Added by Markus Klein about 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2014-02-06
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The link wizard offers a field to specify additional link parameters.
This is encoded as fifth part into the link field.

When the link is rendered via ContentObjectRenderer::typoLink() this fifth part is evaluated but never used.

Affected are 6.0+ (did not check 4.x)

Reproduction

  • Use the link wizard on any content element (for instance header)
  • Set External URL
  • Set some additional parameter

Result

The additional params do not show up anywhere

Code

The code is evaluated here:

if (isset($link_paramA[4]) && strlen(trim($link_paramA[4])) > 0) {
    $forceParams = trim($link_paramA[4]);
    // params value
    $conf['additionalParams'] .= $forceParams[0] == '&' ? $forceParams : '&' . $forceParams;
}

But $conf['additionalParams'] is never used in the if body starting from line 5854.


Files


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #68328: Remove additional link params field from ElementBrowserClosed2015-07-18

Actions
Has duplicate TYPO3 Core - Bug #53729: Add additional link parameter for image links does not workClosed2013-11-18

Actions
Actions

Also available in: Atom PDF