Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
zerver: Replace occurrences of uri with url in other templates.
Vector73fef31614d35e
diff --git a/templates/zerver/accounts_home.html b/templates/zerver/accounts_home.htmlindex be95e9038f4..8644f6c72fa 100644--- a/templates/zerver/accounts_home.html+++ b/templates/zerver/accounts_home.html@@ -25,7 +25,7 @@ page can be easily identified in it's respective JavaScript file --><img class="avatar" src="{{ realm_icon }}" alt="" /><div class="info-box"><div class="organization-name">{{ realm_name }}</div>- <div class="organization-path">{{ realm_uri }}</div>+ <div class="organization-path">{{ realm_url }}</div></div></div><div class="description">diff --git a/templates/zerver/invalid_email.html b/templates/zerver/invalid_email.htmlindex 78e6aacecd0..f27bfe261f2 100644--- a/templates/zerver/invalid_email.html+++ b/templates/zerver/invalid_email.html@@ -21,13 +21,13 @@{{ _("The email address you are trying to sign up with is not valid.") }}{% endif %}{% if closed_domain %}- {% trans %}The organization you are trying to join, <a href="{{ realm_uri }}">{{ realm_name }}</a>, does not allow signups using emails with your email domain.{% endtrans %}+ {% trans %}The organization you are trying to join, <a href="{{ realm_url }}">{{ realm_name }}</a>, does not allow signups using emails with your email domain.{% endtrans %}{% endif %}{% if disposable_emails_not_allowed %}- {% trans %}The organization you are trying to join, <a href="{{ realm_uri }}">{{ realm_name }}</a>, does not allow signups using disposable email addresses.{% endtrans %}+ {% trans %}The organization you are trying to join, <a href="{{ realm_url }}">{{ realm_name }}</a>, does not allow signups using disposable email addresses.{% endtrans %}{% endif %}{% if email_contains_plus %}- {% trans %}The organization you are trying to join, <a href="{{ realm_uri }}">{{ realm_name }}</a>, does not allow signups using emails that contain "+".{% endtrans %}+ {% trans %}The organization you are trying to join, <a href="{{ realm_url }}">{{ realm_name }}</a>, does not allow signups using emails that contain "+".{% endtrans %}{% endif %}{% if invalid_email %}{{ _("Please sign up using a valid email address.") }}diff --git a/templates/zerver/login.html b/templates/zerver/login.htmlindex 313b7827073..147d6c5db9a 100644--- a/templates/zerver/login.html+++ b/templates/zerver/login.html@@ -25,7 +25,7 @@ page can be easily identified in it's respective JavaScript file. --><img class="avatar" src="{{ realm_icon }}" alt="" /><div class="info-box"><div class="organization-name">{{ realm_name }}</div>- <div class="organization-path">{{ realm_uri }}</div>+ <div class="organization-path">{{ realm_url }}</div></div></div><div class="description">diff --git a/templates/zerver/no_spare_licenses.html b/templates/zerver/no_spare_licenses.htmlindex 46cb35384cd..85b482b5566 100644--- a/templates/zerver/no_spare_licenses.html+++ b/templates/zerver/no_spare_licenses.html@@ -13,7 +13,7 @@</div><div class="white-box"><p>- {% trans %}New members cannot currently join <a href="{{ realm_uri }}">{{ realm_name }}</a> because all Zulip Cloud licenses are in use.{% endtrans %}+ {% trans %}New members cannot currently join <a href="{{ realm_url }}">{{ realm_name }}</a> because all Zulip Cloud licenses are in use.{% endtrans %}</p><p>{{ _("Please contact the person who invited you and ask them to increase the number of licenses, then try again.") }}diff --git a/templates/zerver/register.html b/templates/zerver/register.htmlindex 851af234a92..fd8316d48a9 100644--- a/templates/zerver/register.html+++ b/templates/zerver/register.html@@ -73,7 +73,7 @@ Form is validated both client-side using jquery-validation (see signup.js) and s<img class="avatar inline-block" src="{{ realm_icon }}" alt="" /><div class="info-box inline-block"><div class="organization-name">{{ realm_name }}</div>- <div class="organization-path">{{ realm_uri }}</div>+ <div class="organization-path">{{ realm_url }}</div></div>{% endif %}diff --git a/templates/zerver/unsubscribe_success.html b/templates/zerver/unsubscribe_success.htmlindex 22ce2834d4e..5e235b6fde4 100644--- a/templates/zerver/unsubscribe_success.html+++ b/templates/zerver/unsubscribe_success.html@@ -18,7 +18,7 @@<p>{% trans %}You've successfully unsubscribed from Zulip {{ subscription_type }} emails for- <a href="{{ realm_uri }}">{{ realm_name }}</a>.+ <a href="{{ realm_url }}">{{ realm_name }}</a>.{% endtrans %}</p>@@ -26,7 +26,7 @@<p>{% trans %}You can undo this change or review your preferences in your- <a href="{{ realm_uri }}/#settings/notifications">notification settings</a>.+ <a href="{{ realm_url }}/#settings/notifications">notification settings</a>.{% endtrans %}</p>{% endif %}diff --git a/zerver/context_processors.py b/zerver/context_processors.pyindex 45ac6e81fd1..1c93ce2ffbb 100644--- a/zerver/context_processors.py+++ b/zerver/context_processors.py@@ -118,11 +118,11 @@ def zulip_default_context(request: HttpRequest) -> Dict[str, Any]:realm = get_realm_from_request(request)if realm is None:- realm_uri = settings.ROOT_DOMAIN_URI+ realm_url = settings.ROOT_DOMAIN_URIrealm_name = Nonerealm_icon = Noneelse:- realm_uri = realm.url+ realm_url = realm.urlrealm_name = realm.namerealm_icon = get_realm_icon_url(realm)@@ -190,8 +190,7 @@ def zulip_default_context(request: HttpRequest) -> Dict[str, Any]:"only_sso": settings.ONLY_SSO,"external_host": settings.EXTERNAL_HOST,"external_url_scheme": settings.EXTERNAL_URI_SCHEME,- "realm_uri": realm_uri,- "realm_url": realm_uri,+ "realm_url": realm_url,"realm_name": realm_name,"realm_icon": realm_icon,"root_domain_url": settings.ROOT_DOMAIN_URI,@@ -218,9 +217,9 @@ def zulip_default_context(request: HttpRequest) -> Dict[str, Any]:"corporate_enabled": corporate_enabled,}- context["PAGE_METADATA_URL"] = f"{realm_uri}{request.path}"+ context["PAGE_METADATA_URL"] = f"{realm_url}{request.path}"if realm is not None and realm.icon_source == realm.ICON_UPLOADED:- context["PAGE_METADATA_IMAGE"] = urljoin(realm_uri, realm_icon)+ context["PAGE_METADATA_IMAGE"] = urljoin(realm_url, realm_icon)return context