Project

General

Profile

Actions

Bug #65666

closed

typolink, typolinkEnableLinksAcrossDomains and forceAbsoluteUrl strips absRefPrefix

Added by Markus Klein about 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Frontend
Target version:
Start date:
2015-03-11
Due date:
% Done:

100%

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

Description

Environment

  • no realurl
  • config.typolinkEnableLinksAcrossDomains= 1
  • config.absRefPrefix = /site/

Reproduce

use this TypoScript snippet:

link = TEXT
link.typolink {
  parameter = 66
  forceAbsoluteUrl = 1
  additionalParams = &tx_ext_pi1[controller]=Controller
  returnLast = url
}

The expected result would be:

http://dev/site/index.php?id=66&tx_ext_pi1%5Bcontroller%5D=Controller

The actual result is:

http://dev/index.php?id=66&tx_ext_pi1%5Bcontroller%5D=Controller

Solution

In the typolink() function there is a wrong assumption about the content of $targetDomain.

If we have domain here it means we link across domains...

If forceAbsoluteUrl is set $targetDomain will contain the current domain.
A check for this case needs to be added.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #63954: typolink_URL ignores forceAbsoluteUrlClosed2014-12-17

Actions
Actions

Also available in: Atom PDF