IDEX-837. Fixed bug related with getting host from url