Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
home: Only serve landing page at root domain on corporate servers.
Aman Agrawal4b6df8a67827
diff --git a/zerver/views/home.py b/zerver/views/home.pyindex d2f6cd2eb0d..bc13b5e6795 100644--- a/zerver/views/home.py+++ b/zerver/views/home.py@@ -115,7 +115,11 @@ def home(request: HttpRequest) -> HttpResponse:# If settings.ROOT_DOMAIN_LANDING_PAGE and this is the root# domain, send the user the landing page.- if settings.ROOT_DOMAIN_LANDING_PAGE and subdomain == Realm.SUBDOMAIN_FOR_ROOT_DOMAIN:+ if (+ settings.ROOT_DOMAIN_LANDING_PAGE+ and subdomain == Realm.SUBDOMAIN_FOR_ROOT_DOMAIN+ and settings.CORPORATE_ENABLED+ ):return hello_view(request)realm = get_realm_from_request(request)