From c686c5ed0f461e41b12ee98d0ef1978017f3330c Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Thu, 23 Mar 2023 02:53:14 +0000 Subject: [PATCH] web: Save a needless 301 redirect from /plans to /plans/. --- corporate/views/portico.py | 4 ++-- docs/production/multiple-organizations.md | 2 +- help/message-retention-policy.md | 2 +- help/zulip-cloud-billing.md | 2 +- templates/corporate/billing.html | 2 +- templates/corporate/for/communities.html | 4 ++-- templates/corporate/for/events.html | 4 ++-- templates/corporate/for/open-source.html | 6 +++--- templates/corporate/for/research.html | 6 +++--- templates/corporate/hello.html | 4 ++-- templates/corporate/team.html | 2 +- templates/corporate/values.md | 2 +- .../spiders/check_help_documentation.py | 2 +- web/templates/gear_menu.hbs | 8 ++++---- zerver/lib/markdown/help_relative_links.py | 2 +- zerver/tests/test_docs.py | 6 +++--- 16 files changed, 29 insertions(+), 29 deletions(-) diff --git a/corporate/views/portico.py b/corporate/views/portico.py index b787386448..22cedc0ebc 100644 --- a/corporate/views/portico.py +++ b/corporate/views/portico.py @@ -60,9 +60,9 @@ def plans_view(request: HttpRequest) -> HttpResponse: if realm is not None: if realm.plan_type == Realm.PLAN_TYPE_SELF_HOSTED and settings.PRODUCTION: - return HttpResponseRedirect("https://zulip.com/plans") + return HttpResponseRedirect("https://zulip.com/plans/") if not request.user.is_authenticated: - return redirect_to_login(next="/plans") + return redirect_to_login(next="/plans/") if request.user.is_guest: return TemplateResponse(request, "404.html", status=404) customer = get_customer_by_realm(realm) diff --git a/docs/production/multiple-organizations.md b/docs/production/multiple-organizations.md index b3b7c4e0bc..0777f000f8 100644 --- a/docs/production/multiple-organizations.md +++ b/docs/production/multiple-organizations.md @@ -146,7 +146,7 @@ browsers will experience weird/confusing redirects. ## Open realm creation -Installations like [Zulip Cloud](https://zulip.com/plans) that wish to +Installations like [Zulip Cloud](https://zulip.com/plans/) that wish to allow anyone on the Internet to create new Zulip organizations can do so by setting `OPEN_REALM_CREATION = True` in `/etc/zulip/settings.py`. Note that offering Zulip hosting to anyone diff --git a/help/message-retention-policy.md b/help/message-retention-policy.md index 9a5ca6b0f8..c055fc1620 100644 --- a/help/message-retention-policy.md +++ b/help/message-retention-policy.md @@ -20,7 +20,7 @@ Zulip's system supports: period. In Zulip Cloud, message retention policies are available on the Zulip -Cloud Standard and Zulip Cloud Plus [plans](https://zulip.com/plans), +Cloud Standard and Zulip Cloud Plus [plans](https://zulip.com/plans/), as well as for the hundreds of communities with sponsored Cloud Standard hosting. diff --git a/help/zulip-cloud-billing.md b/help/zulip-cloud-billing.md index f904bf869c..f909e6d0d6 100644 --- a/help/zulip-cloud-billing.md +++ b/help/zulip-cloud-billing.md @@ -1,7 +1,7 @@ # Zulip Cloud billing This page answers some frequently asked questions about [Zulip Cloud plans and -pricing](https://zulip.com/plans). If you have any other questions, please don't hesitate to +pricing](https://zulip.com/plans/). If you have any other questions, please don't hesitate to reach out at sales@zulip.com. ## Differences between Zulip Cloud plans diff --git a/templates/corporate/billing.html b/templates/corporate/billing.html index f268ba9125..d005b52f42 100644 --- a/templates/corporate/billing.html +++ b/templates/corporate/billing.html @@ -204,7 +204,7 @@ - +

diff --git a/templates/corporate/for/communities.html b/templates/corporate/for/communities.html index 1e897705f5..93f9c100cb 100644 --- a/templates/corporate/for/communities.html +++ b/templates/corporate/for/communities.html @@ -22,7 +22,7 @@

Open-source projects, research collaborations, volunteer organizations.
Most communities get an 85%+ discount - on Zulip Cloud Standard! + on Zulip Cloud Standard!

Learn how the Recurse @@ -50,7 +50,7 @@