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 over 12 years ago. Updated over 5 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 #1

Updated by Gerrit Code Review over 12 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

Actions #2

Updated by Xavier Perseguers about 12 years ago

  • Target version deleted (4.6.4)
Actions #3

Updated by Gerrit Code Review about 12 years ago

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

Actions #4

Updated by Philipp Gampe about 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 "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/"

Actions #5

Updated by Gerrit Code Review about 12 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

Actions #6

Updated by Gerrit Code Review about 12 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

Actions #7

Updated by Nils Seinschedt about 12 years ago

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

Updated by Gerrit Code Review about 12 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

Actions #9

Updated by Nils Seinschedt about 12 years ago

  • Status changed from Under Review to Resolved
Actions #10

Updated by Gerrit Code Review about 12 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

Actions #11

Updated by Gerrit Code Review almost 12 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

Actions #12

Updated by Nils Seinschedt about 11 years ago

  • Status changed from Under Review to Resolved
Actions #13

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF