Fixed bug when URL was generating wrongly with Redirect::action