Bug #37550

TYPO3.FLOW3.http.baseUri does not work

Added by Pankaj Lele about 3 years ago. Updated over 1 year ago.

Status:Resolved Start date:2012-05-28
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:Http
Target version:-
PHP Version:5.3 Complexity:
Has patch:Yes Affected Flow version:FLOW3 1.1.0 beta 1

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.

typo3.flow3.patch Magnifier (1.2 kB) Pankaj Lele, 2012-05-28 18:31

typo3.flow3.patch Magnifier (3.2 kB) Pankaj Lele, 2012-05-28 20:56

typo3.flow3_v2.patch Magnifier (2.8 kB) Pankaj Lele, 2012-05-28 22:28

patch Magnifier (2.4 kB) Henrik Møller Rasmussen, 2012-06-13 12:07

Associated revisions

Revision 92b4d995
Added by Henrik Møller Rasmussen about 3 years ago

[BUGFIX] Make baseUri setting work for resource publishing

The baseUri setting was not observed in the filesystem resource
publisher.

Change-Id: Iabb30661bab00d24fae2715c11e2f9942e90a9d1
Fixes: #37550
Releases: 1.1, 1.2

Revision f75c243e
Added by Henrik Møller Rasmussen about 3 years ago

[BUGFIX] Make baseUri setting work for resource publishing

The baseUri setting was not observed in the filesystem resource
publisher.

Change-Id: Iabb30661bab00d24fae2715c11e2f9942e90a9d1
Fixes: #37550
Releases: 1.1, 1.2

History

#1 Updated by Pankaj Lele about 3 years ago

#2 Updated by Pankaj Lele about 3 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 about 3 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 about 3 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 about 3 years ago

  • Assigned To changed from Robert Lemke to Karsten Dambekalns

#6 Updated by Gerrit Code Review about 3 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 3 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 3 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 3 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 3 years ago

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

Also available in: Atom PDF