[TYPO3-mvc] redirect results in quite ugly url

Sebastian Fischer sf at marketing-factory.de
Tue Feb 1 14:12:51 CET 2011


On 01.02.2011 12:26, Michael Knoll wrote:
> Hi Sebastian,
>
> perhaps it's a solution to use forward instead of redirect? It has the
> same signature as redirect and should do the job. That prevents Extbase
> from encoding all your information into URL as it is still present in
> the controller context.
>
> Greetings
>
> Michael
>
>
>
>
> Am 01.02.11 09:45, schrieb Sebastian Fischer:
>> 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
>

Hi Michael,

you are right, this could be a solution. I will check this tonight and 
report wether this does it or not.

Greetings
Sebastian


More information about the TYPO3-project-typo3v4mvc mailing list