MCPcopy Create free account
hub / github.com/alephdata/aleph / url_external

Function url_external

aleph/core.py:199–205  ·  view source on GitHub ↗

Generate external URLs with HTTPS (if configured).

(path, query, relative=False)

Source from the content-addressed store, hash-verified

197
198
199def url_external(path, query, relative=False):
200 """Generate external URLs with HTTPS (if configured)."""
201 if query is not None:
202 path = "%s?%s" % (path, urlencode(query))
203 if relative:
204 return path
205 return urljoin(SETTINGS.APP_UI_URL, path)

Callers 2

make_urlMethod · 0.90
url_forFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected