[Flow] Routes and controller redirects
Stephen Bungert
stephenbungert at yahoo.de
Mon Oct 14 10:01:19 CEST 2013
Thanks for the tip, that was just a error on my part it is record and not
book, still doen't work.
I have found a solution, that is to add '@format': 'html' and add
appendExceedingArguments: true
"Christian Müller" <christian.mueller at typo3.org> schrieb im Newsbeitrag
news:mailman.1.1381735661.2141.flow at lists.typo3.org...
> Hi Stephen,
>
> Stephen Bungert wrote:
>> I have just started setting up routes and find that redirects don't seem
>> to use my configuration.
>>
>> I have a route for edit:
>>
>> -
>> name: 'Record: Edit'
>> uriPattern: 'record/{record}/edit'
>> defaults:
>> '@package': 'Vendor.Package'
>> '@controller': 'Controller'
>> '@action': 'edit'
>> httpMethods: ['GET']
>> routeParts:
>> record:
>> objectType: 'Vendor\Package\Domain\Model\Record'
>> uriPattern: '{title}-({creator.fullName})'
>>
>> This doesn't work, my controller's redirect in create/update looks like:
>>
>> $this->redirect('edit', 'Controller', NULL, array('book' => $book));
>
> The controller argument name doesn't match the dynamic route part name
> (record vs. book) so there is no match. You need to adapt one or the other
> so that the route part name is the same as the controller argument. Then
> it should work.
>
> Cheers,
> Christian
>
>
> --
> Christian Müller
> Flow / Neos Team Community Contact
>
> TYPO3 .... inspiring people to share!
> Get involved: http://typo3.org
>
>
More information about the Flow
mailing list