Allow toRedirect() to accept a closure which receives the matched route, you can process and then return the redirect location

Description

Allow the target argument of the toRedirect() method to accept a closure/lambda. This closure will receive the matched route record and MUST return the relocation string that will be used to redirect.

This is great if you need to actually parse the incoming route and do a dynamic relocation.

Happy Redirecting!

Assignee

Luis Majano

Reporter

Luis Majano

Labels

None

Components

Fix versions

Priority

Major
Configure