#965 changed generation of redirect url for mobiles