fix search for base-url since it is usually a self-closing tag