The project it's in Drupal 8.2
Hello, when a user fill the profile and Save ( /user/id/edit) the page it's reloaded with the new data in the same url, but I want to redirect the user to /user/id
This code should work:
function custom_user_form_user_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
$form_state->setRedirect('user.page');
}
But it doesn't work, any idea what's going on?
Thanks