Fix redirectToAction method
Merge pull request #5847 from ckgranini/5.0-redirectToAction

[5.0] Fix redirectToAction method