[TYPO3-mvc] redirect results in quite ugly url

Sebastian Fischer sf at marketing-factory.de
Tue Feb 1 09:45:20 CET 2011


Hi everyone,

im currently having problems with redirect(). Which results in an url 
that contains a complete serialized array. Why is it like that?

Well i have a formAction which is pointed to a previewAction. There i 
want to have possibility to go back to the formAction or forward to the 
saveAction. That's why i pointed the previewAction to a proxyAction.

In this proxyAction i check if a attribute form or a attribute save is 
present. In either cases i need to redirect or else the hole stuffs gets 
messed up.

Its not possible to have a call to formAction directly because then the 
view doesnt know which template to render.

Given that i need to redirect, i need to hand over the form content too. 
This is done with the informations of 
$this->request->getArgument('content') and 
$this->request->getArgument('__hmac'). The second one is needed by 
extbase to generate the object in the method parameter.

So now i got my redirect with all entered information of the form and 
all structural information needed. But this informations get rendered 
into the url. Thats what i call ugly ugly ugly.

Now its up to you. Do you know a better solution? How could this proxy 
stuff get handled in a better way? Would it be possible to have the 
action in duty called directly without redirect? Could the view be 
convinced to use the correct template?

So many questions, so less time.

With lots of hope and greetings
Sebastian


More information about the TYPO3-project-typo3v4mvc mailing list