web: Save two 301 redirects from /terms to /terms/ to /policies/terms.

This commit is contained in:
Alex Vandiver 2023-03-23 03:07:19 +00:00 committed by Tim Abbott
parent d9daeb13e0
commit ce847fd09c
4 changed files with 4 additions and 4 deletions

View File

@ -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 %}

View File

@ -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 %}

View File

@ -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",

View File

@ -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