TypoLink creates only absolute links in multi-domain environment when installed in a subfolder
If you have the following configuration:
http://localhost/subfolder/ < This is your website root
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).
Updated by Philipp Gampe almost 12 years ago
I can not reproduce this bug with current master.
I use the introduction package from 4.4 as base for my test website.
I created a domain record "
Then I set
config.baseUrl = /t3-playground/dummy/.
No absRefPrefix is set (this setting does not exits in this version of the IP and it is not set anywhere else).
I always get relative URLs in frontend for all menu items and images.
My website is located at "