[client][js][login] fix url generation for browser popup when custom display mode is specified
Merge pull request #462 from hasankhan/loginfix

[client][js][login] fix url generation for browser popup when custom display mode is specified