By default, if there is a returnurl
URL parameter when accessing the Login page, the webpart will automatically redirect to that URL after the user has authenticated. If there is no returnurl
URL parameter, it will look to see if the there is a URL set in the webpart properties. If not, it will check to see if the user account has a starting alias path. If not, it just redirects to the current page.