Add Controller::generateRedirect method