def METHOD_NAME(base_dir, current_dir, url_prefix):
    relative_current = os.path.relpath(current_dir, start=base_dir)
    up_one_index = os.path.normpath(os.path.join(relative_current, "..", "index.html"))
    return urllib.parse.urljoin(url_prefix, up_one_index)