[config] let the browser compute relative paths

for #2104

Sets the path to elasticsearch as a relative path from the current page.