Issue Bug Closed

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

Susanne Moog 01/16/12, 10:57 updated 10/02/18, 12:19

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).

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.