Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
web: Save two 301 redirects from /terms to /terms/ to /policies/terms.
Alex Vandiverce847fd09cbc
diff --git a/templates/zerver/accounts_accept_terms.html b/templates/zerver/accounts_accept_terms.htmlindex 676c376f184..8bfb4c5129b 100644--- a/templates/zerver/accounts_accept_terms.html+++ b/templates/zerver/accounts_accept_terms.html@@ -49,7 +49,7 @@ the registration flow has its own (nearly identical) copy of the fields below in<input id="id_terms" class="required" type="checkbox" name="terms"{% if form.terms.value() %}checked="checked"{% endif %} /><span></span>- {% trans %}I agree to the <a href="{{ root_domain_uri }}/terms" target="_blank" rel="noopener noreferrer">Terms of Service</a>.{% endtrans %}+ {% trans %}I agree to the <a href="{{ root_domain_uri }}/policies/terms" target="_blank" rel="noopener noreferrer">Terms of Service</a>.{% endtrans %}</label>{% if form.terms.errors %}{% for error in form.terms.errors %}diff --git a/templates/zerver/register.html b/templates/zerver/register.htmlindex 9251ca9b679..fcec3374d04 100644--- a/templates/zerver/register.html+++ b/templates/zerver/register.html@@ -266,7 +266,7 @@ Form is validated both client-side using jquery-validation (see signup.js) and s<input id="id_terms" class="required" type="checkbox" name="terms"{% if form.terms.value() %}checked="checked"{% endif %} /><span></span>- {% trans %}I agree to the <a href="{{ root_domain_uri }}/terms" target="_blank" rel="noopener noreferrer">Terms of Service</a>.{% endtrans %}+ {% trans %}I agree to the <a href="{{ root_domain_uri }}/policies/terms" target="_blank" rel="noopener noreferrer">Terms of Service</a>.{% endtrans %}</label>{% if form.terms.errors %}{% for error in form.terms.errors %}diff --git a/tools/documentation_crawler/documentation_crawler/spiders/check_help_documentation.py b/tools/documentation_crawler/documentation_crawler/spiders/check_help_documentation.pyindex 255c6f5bbf3..ec976151c8f 100644--- a/tools/documentation_crawler/documentation_crawler/spiders/check_help_documentation.py+++ b/tools/documentation_crawler/documentation_crawler/spiders/check_help_documentation.py@@ -70,7 +70,7 @@ class PorticoDocumentationSpider(BaseDocumentationSpider):"http://localhost:9981/team/","http://localhost:9981/apps/","http://localhost:9981/integrations/",- "http://localhost:9981/terms",+ "http://localhost:9981/policies/terms","http://localhost:9981/privacy","http://localhost:9981/features","http://localhost:9981/why-zulip",diff --git a/zerver/tests/test_docs.py b/zerver/tests/test_docs.pyindex 54aa2ebe518..0f59a951004 100644--- a/zerver/tests/test_docs.py+++ b/zerver/tests/test_docs.py@@ -636,7 +636,7 @@ class PrivacyTermsTest(ZulipTestCase):self.assert_in_success_response(["Kandra Labs"], result)def test_no_nav(self) -> None:- # Test that our ?nav=0 feature of /privacy and /terms,+ # Test that our ?nav=0 feature of /privacy and /policies/terms,# designed to comply with the Apple App Store draconian# policies that ToS/Privacy pages linked from an iOS app have# no links to the rest of the site if there's pricing