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