Bug #37550

TYPO3.FLOW3.http.baseUri does not work

Added by Pankaj Lele over 9 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Should have
Category:
Http
Target version:
-
Start date:
2012-05-28
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.3
Has patch:
Yes
Complexity:

Description

Setting TYPO3.FLOW3.http.baseUri to a value e.g. 'http://mywebsite.com/' really have no effect on the <base> tag and the resource links.

This baseUri setting is really helpful when FLOW3 is running behind a nginx proxy. So that FLOW3 can be forced to render base tag and resource links with the baseUri of nginx site.

Attached patch works very well. But not sure if it's clean approach.


Files

typo3.flow3.patch (1.2 KB) typo3.flow3.patch Pankaj Lele, 2012-05-28 18:31
typo3.flow3.patch (3.22 KB) typo3.flow3.patch Pankaj Lele, 2012-05-28 20:56
typo3.flow3_v2.patch (2.85 KB) typo3.flow3_v2.patch Pankaj Lele, 2012-05-28 22:28
patch (2.41 KB) patch Henrik Møller Rasmussen, 2012-06-13 12:07
#2

Updated by Pankaj Lele over 9 years ago

More elegant way by using additionally a HTTP header to override the baseUri. Still the patch cannot be that clean in your eyes. So please add your comments.

#3

Updated by Henrik Møller Rasmussen over 9 years ago

Experiencing same issues in latest head:

commit 2bf89747b985f4bf41d4fad5be5c1bc7f9dc28cd
Author: hudson <>
Date: Mon Jun 11 17:03:54 2012 +0200

#4

Updated by Henrik Møller Rasmussen over 9 years ago

[BUGFIX] Initialize resources base uri upon request

The resources base uri was set in the object initialization
where the settings was not loaded yet. That meant that the
TYPO3.FLOW3.http.baseUri setting did not have any effect.

Instead the base uri is detected upon first request. This
way the settings are loaded upon first resources base uri
detection.

#5

Updated by Karsten Dambekalns over 9 years ago

  • Assignee changed from Robert Lemke to Karsten Dambekalns
#6

Updated by Gerrit Code Review over 9 years ago

  • Status changed from New to Under Review

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

#7

Updated by Gerrit Code Review about 9 years ago

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

#8

Updated by Gerrit Code Review about 9 years ago

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

#9

Updated by Gerrit Code Review about 9 years ago

Patch set 1 for branch FLOW3-1.1 has been pushed to the review server.
It is available at http://review.typo3.org/12162

#10

Updated by Henrik Møller Rasmussen about 9 years ago

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

Also available in: Atom PDF