LPS-42685 Use relative URL in case of localhost
LPS-42685 Use StringUtil.equalsIgnoreCase