Fix for multisite login

Changes the logic, to return the url of the currect site that the user
is on an not the primary site on network. Fixes bug with multisite
login on sub domain configuration.