ESDEV-2145 Fix bug #5809: Session ID Disclosure

Fixed problems with checking shop url by language and hosts selection.