How to create a redirection in Drupal 8 ? By example, with hook, and after login or if an url is called.
closed as too broad by kiamlaluno♦ May 26 '16 at 13:07
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
$response = new Symfony\Component\HttpFoundation\RedirectResponse($url); $response->send(); // don't send the response yourself inside controller and form. return;