Login page should take to Home Tab irrespective of URL.
I recently came across a situation where we would need to get to the Hometab on CRMOD irrespective of the URL that is saved in the bookmark of the user.
For example,
If we try to login using Account Creation Page URL(https://secure-ausomxhia.crmondemand.com/OnDemand/user/DefAccountInsert?OMRET0=AccountHomePage&OCTYPE=&OMTGT=AccountEditForm&OMTHD=AccountNewNav) with another session.System asks to log in with User ID and Password but then lands in Account Creation page only. [an expected behavior]
there is a need to run scripts and the scripts run in this case only from the HomeTab - hence the need.