[Flow] Routes and controller redirects

Stephen Bungert stephenbungert at yahoo.de
Sat Oct 12 22:46:02 CEST 2013


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));


Is it possible for redirect to redirect to matching route uripatterns? 
If so, how?

Thanks for the help.

Stephen.


More information about the Flow mailing list