Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
documentation: Add context properties for subdomain and host segments.
Niloth Pdab97304f66c
diff --git a/api_docs/running-bots.md b/api_docs/running-bots.mdindex 428f4f2e2e2..20f8542f9f6 100644--- a/api_docs/running-bots.md+++ b/api_docs/running-bots.md@@ -13,7 +13,7 @@ You'll need:* An account in a Zulip organization(e.g., [the Zulip development community](https://zulip.com/development-community/),- `<yourSubdomain>.zulipchat.com`, or a Zulip organization on your own+ `{{ display_host }}`, or a Zulip organization on your own[development](https://zulip.readthedocs.io/en/latest/development/overview.html) or[production](https://zulip.readthedocs.io/en/latest/production/install.html) server).* A computer where you're running the bot from.diff --git a/help/scim.md b/help/scim.mdindex 92e74d106ec..861c2f7ff79 100644--- a/help/scim.md+++ b/help/scim.md@@ -50,7 +50,7 @@ Zulip's SCIM integration has the following limitations:1. In the **Provisioning** tab, click **Configure API Integration**, check the**Enable API integration** checkbox, and specify the following fields:- * **Base URL**: `yourorganization.zulipchat.com/scim/v2`+ * **Base URL**: `{{ display_host }}/scim/v2`* **API token**: `Bearer <token>` (given to you by Zulip support)When you proceed to the next step, Okta will verify that these details are@@ -109,7 +109,7 @@ Zulip's SCIM integration has the following limitations:1. Continue to the app's management screen and click **Provisioning** in the left panel.1. In the **Provisioning Mode** menu, select **Automatic** and specify the following fields:- * **Tenant URL**: `http://yourorganization.zulipchat.com/scim/v2/?aadOptscim062020`.+ * **Tenant URL**: `{{ display_host }}/scim/v2/?aadOptscim062020`.The `?aadOptscim062020` part of it is a [feature flag][feature-flag]that needs to be added to ensure SCIM compliance by Entra ID.* **Secret Token**: `<token>` (given to you by Zulip support)diff --git a/templates/zerver/integrations/redmine.md b/templates/zerver/integrations/redmine.mdindex 6ea8460c1f1..2d1f712ae1e 100644--- a/templates/zerver/integrations/redmine.md+++ b/templates/zerver/integrations/redmine.md@@ -32,7 +32,7 @@ corner, then click on **Plugins**.3. Find the **Redmine Zulip** plugin, and click **Configure**. Fillout the following fields:- * Zulip URL (e.g `https://yourZulipDomain.zulipchat.com/`)+ * Zulip URL (e.g `{{ zulip_url }}`)* Zulip Bot E-mail* Zulip Bot API key* Stream name __*__diff --git a/zerver/views/documentation.py b/zerver/views/documentation.pyindex d8f86fa7855..b3aa10f44a9 100644--- a/zerver/views/documentation.py+++ b/zerver/views/documentation.py@@ -59,6 +59,8 @@ def add_api_url_context(context: dict[str, Any], request: HttpRequest) -> None:api_url = settings.EXTERNAL_URI_SCHEME + api_url_scheme_relativezulip_url = settings.EXTERNAL_URI_SCHEME + display_host+ context["display_subdomain"] = display_subdomain+ context["display_host"] = display_hostcontext["external_url_scheme"] = settings.EXTERNAL_URI_SCHEMEcontext["api_url"] = api_urlcontext["api_url_scheme_relative"] = api_url_scheme_relativediff --git a/zerver/webhooks/zapier/doc.md b/zerver/webhooks/zapier/doc.mdindex 48f98a08e4e..0f545c4bc5c 100644--- a/zerver/webhooks/zapier/doc.md+++ b/zerver/webhooks/zapier/doc.md@@ -38,7 +38,7 @@ sent by Zapier directly in Zulip.enter the email associated with your Zulip account in the**Recipients** field. Otherwise, enter `user` +[your user ID](/help/view-someones-profile) +- `@` + your Zulip domain, e.g., `[email protected]`.+ `@` + your Zulip domain, e.g., `user123@{{ display_host }}`.1. Click **Publish** to enable your Zap.