fix for login dialog when redirected there
Merge pull request #2064 from bartcharbon/master

fix for login dialog when redirected there