[TYPO3-mvc] Forwarding action without loosing request parameters

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Wed Nov 4 20:57:17 CET 2009


Seems like the UriBuilder creates URIs with a leading slash; see:

baseUri
|http://domain.tld/|

uri
|/Page.18.0.html?&tx_ext_plugin[action]=index&tx_ext_plugin[controller]=PluginController&cHash=de963e26059cf1fcf9d803610e378213|

Is this a bug or does the trailing slash needed to be cut off
the $uri inside redirectToURI() before appended to $baseUri?

Thank you for your help!

Bastian Waidelich schrieb:
> Thomas "Thasmo" Deinhamer wrote:
> 
> Hi Thomas,
> 
>> I changed the method to 'redirect()', but now the following accours:
>>
>> If I use method="post" in the <f:form> tag, it will redirect me to 
>> http://my-domain.tld//<title>.<id>.<type>.html?&tx_ext_plugin[action]=index&tx_ext_plugin[controller]=PluginController&cHash=<hash> 
>>
>> The weird is, that the two "//" won't be recognized by TYPO3
> 
> It seems either your base URI contains two trailing slashes, or the 
> UriBuilder somehow creates URIs with a leading slash..
> 
> Can you debug
> Tx_Extbase_MVC_Controller_AbstractController::redirectToURI()
> by inserting s.th. like
> debug($baseUri, 'baseUri');
> debug($uri, 'uri);
> exit;
> 
> before line 319 ($uri = $baseUri . (string)$uri;)
> 
> and post your results?
> 
> Bastian


More information about the TYPO3-project-typo3v4mvc mailing list