mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 11:52:01 +00:00
integrations: Make sure settings.EXTERNAL_URI_SCHEME renders.
This got broken at some point when we moved around the context processing logic for integrations/webhooks. Thankfully, the context value for external_uri_scheme was only used in a couple of our less popular integration docs. It should render perfectly now.
This commit is contained in:
@@ -31,6 +31,7 @@ def add_api_uri_context(context: Dict[str, Any], request: HttpRequest) -> None:
|
|||||||
api_url_scheme_relative = display_host + "/api"
|
api_url_scheme_relative = display_host + "/api"
|
||||||
api_url = settings.EXTERNAL_URI_SCHEME + api_url_scheme_relative
|
api_url = settings.EXTERNAL_URI_SCHEME + api_url_scheme_relative
|
||||||
|
|
||||||
|
context['external_uri_scheme'] = settings.EXTERNAL_URI_SCHEME
|
||||||
context['api_url'] = api_url
|
context['api_url'] = api_url
|
||||||
context['api_url_scheme_relative'] = api_url_scheme_relative
|
context['api_url_scheme_relative'] = api_url_scheme_relative
|
||||||
context["html_settings_links"] = html_settings_links
|
context["html_settings_links"] = html_settings_links
|
||||||
|
|||||||
Reference in New Issue
Block a user