How to skip the activation page and send the user straight to the home page for WordPress Multisite

Recently I worked on a project for WordPress Multisite and I was asked if there is a way to skip the “wp-activate.php” page on user activation and instead, send the user to the homepage. On the home page, a “Welcome” message should be displayed, so the user knows that activation is ready and he/she can login right away. Well I though for a while and came up with a simple solution that worked.