Project

General

Profile

Actions

Bug #33214

closed

TypoLink creates only absolute links in multi-domain environment when installed in a subfolder

Added by Susanne Moog almost 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2012-01-16
Due date:
% Done:

100%

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

Description

If you have the following configuration:

http://localhost/subfolder/ < This is your website root

Domain-Record:
localhost/subfolder/

You only get absolute links in the frontend afterwards. This is because the typoLink function compares the HTTP_HOST var with the domainRecord. HTTP_HOST is in this case "localhost", the domain record has the subfolder attached. The subfolder needs to be there, as otherwise t3lib_pageSelect::getDomainStartPage does not find the start page anymore. typoLink should check for HTTP_HOST + path of SCRIPT_NAME to determine which domain record to use (same as getDomainStartPage already does).

Actions

Also available in: Atom PDF