[TYPO3-mvc] RFC #10258
Martin Kutschker
masi-no at spam-typo3.org
Thu Oct 14 17:08:15 CEST 2010
Am 14.10.2010 17:01, schrieb Michael Feinbier:
> Hey,
>
> this is a RFC/Bugreport for (hopefully) Extbase:
> The forge issiue can be found at: http://forge.typo3.org/issues/10258
>
> Problem: The method Tx_Extbase_MVC_Controller_AbstractController::addBaseUriIfNecessary() adds the
> BaseURI to any uri which does not begin with the own baseUri. Due to this fact it is not possible to
> link to external URIs via redirectToURI();
>
> Solution: Test if the URI begins with http(s):// instead of the total own base URI.
>
> The attached patch fixes this behaviour and provides the corresponding unit-test.
>
> Happy to hear your feedback!
Why not test if it is an absolute URI (ie starts with *any* scheme)?
BTW, if the URI starts with a slash I suggest to add only the scheme+domain part of the baseURI.
Masi
More information about the TYPO3-project-typo3v4mvc
mailing list