Automatically redirecting a user after login in a Drupal project is a common requirement. In Drupal 7, you'd probably have used hook_user_login() to handle this, but in Drupal 8/9 there's a more robust way to go about it. There are several contributed modules that offer this functionality, for example the...