Bug #33214

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

Added by Susanne Moog almost 10 years ago. Updated about 3 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).

#1

Updated by Gerrit Code Review almost 10 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/7816

#2

Updated by Xavier Perseguers almost 10 years ago

  • Target version deleted (4.6.4)
#3

Updated by Gerrit Code Review almost 10 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/7816

#4

Updated by Philipp Gampe almost 10 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 "phil-desktop/t3-playground/dummy".
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 "phil-desktop|localhost/t3-playground/dummy/"

#5

Updated by Gerrit Code Review almost 10 years ago

Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/9073

#6

Updated by Gerrit Code Review almost 10 years ago

Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/9074

#7

Updated by Nils Seinschedt almost 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#8

Updated by Gerrit Code Review over 9 years ago

  • Status changed from Resolved to Under Review

Patch set 2 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/9074

#9

Updated by Nils Seinschedt over 9 years ago

  • Status changed from Under Review to Resolved
#10

Updated by Gerrit Code Review over 9 years ago

  • Status changed from Resolved to Under Review

Patch set 2 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/9073

#11

Updated by Gerrit Code Review over 9 years ago

Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/12798

#12

Updated by Nils Seinschedt almost 9 years ago

  • Status changed from Under Review to Resolved
#13

Updated by Benni Mack about 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF