I know.
But on most websites, it also auto-detects whether the user is already logged in, and if one is, then it also redirects to the target URL instead of the home page.
This could be useful for invitation links that encourage new users to log in before opening a page while redirecting already logged users to the intended target page instead of the home page.
(post is archived)