Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

web: Save a 301 redirect from /help to /help/.

Alex Vandiver164d58bec952
diff --git a/docs/index.md b/docs/index.md
index 3f34bb8832c..10af57c285e 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -2,7 +2,7 @@
Welcome! Zulip's documentation is split into four parts:
-- [Help center documentation](https://zulip.com/help), for users and
+- [Help center documentation](https://zulip.com/help/), for users and
administrators of Zulip organizations.
- [Installation documentation](production/install.md), for
installing and maintaining a production self-hosted Zulip installation.
diff --git a/docs/overview/architecture-overview.md b/docs/overview/architecture-overview.md
index 67cbe584b10..4f02c12c7a5 100644
--- a/docs/overview/architecture-overview.md
+++ b/docs/overview/architecture-overview.md
@@ -56,7 +56,7 @@ administrators of an organization have a great deal of control over
who can register an account, what permissions new users have, etc. For
more on security considerations and options, see [the security model
section](../production/security-model.md) and the [Zulip Help
-Center](https://zulip.com/help).
+Center](https://zulip.com/help/).
## Components
diff --git a/docs/translating/internationalization.md b/docs/translating/internationalization.md
index 272f1476198..f306a59e08b 100644
--- a/docs/translating/internationalization.md
+++ b/docs/translating/internationalization.md
@@ -13,7 +13,7 @@ principles are important in how we think about internationalization:
tagged for translation in both [HTML templates](#html-templates) and
code, and our linters attempt to enforce this. There are some
exceptions: we don't tag strings in Zulip's landing pages
- (e.g. /features/) and other documentation (e.g. /help) for
+ (e.g. /features/) and other documentation (e.g. /help/) for
translation at this time (though we do aim for those pages to be
usable with tools like Google Translate).
- Translating all the strings in Zulip for a language and maintaining
diff --git a/templates/zerver/footer.html b/templates/zerver/footer.html
index b5fef8b7325..328ba877394 100644
--- a/templates/zerver/footer.html
+++ b/templates/zerver/footer.html
@@ -38,7 +38,7 @@
</h3>
<ul>
<li><a href="/help/getting-started-with-zulip">{{ _("Getting started") }}</a></li>
- <li><a href="/help">{{ _("Help center") }}</a></li>
+ <li><a href="/help/">{{ _("Help center") }}</a></li>
<li><a href="/development-community/" target="_blank">{{ _("Community chat") }}</a></li>
<li class="extra_margin"><a href="/help/contact-support">{{ _("Contact support") }}</a></li>
<li>
@@ -106,7 +106,7 @@
{% endif %}
<div class="footer__legal-spacer"></div>
{% if not corporate_enabled %}
- <a href="/help">{{ _("Help center") }}</a>
+ <a href="/help/">{{ _("Help center") }}</a>
{% endif %}
<a href="{{ root_domain_uri }}/policies/terms">{{ _("Terms of Service") }}</a>
<a href="{{ root_domain_uri }}/policies/privacy">{{ _("Privacy policy") }}</a>
diff --git a/templates/zerver/landing_nav.html b/templates/zerver/landing_nav.html
index 7f22e6ee29e..2d041e18675 100644
--- a/templates/zerver/landing_nav.html
+++ b/templates/zerver/landing_nav.html
@@ -110,7 +110,7 @@
<a href="/help/getting-started-with-zulip">Getting started</a>
</li>
<li>
- <a href="/help">Help center</a>
+ <a href="/help/">Help center</a>
</li>
<li>
<a href="https://zulip.com/development-community/" target="_blank" rel="noopener noreferrer">
diff --git a/tools/documentation_crawler/documentation_crawler/spiders/check_help_documentation.py b/tools/documentation_crawler/documentation_crawler/spiders/check_help_documentation.py
index 4eba2625443..ace48094170 100644
--- a/tools/documentation_crawler/documentation_crawler/spiders/check_help_documentation.py
+++ b/tools/documentation_crawler/documentation_crawler/spiders/check_help_documentation.py
@@ -41,7 +41,7 @@ class UnusedImagesLinterSpider(BaseDocumentationSpider):
class HelpDocumentationSpider(UnusedImagesLinterSpider):
name = "help_documentation_crawler"
- start_urls = ["http://localhost:9981/help"]
+ start_urls = ["http://localhost:9981/help/"]
deny_domains: List[str] = []
deny = ["/policies/privacy"]
images_path = "static/images/help"
@@ -58,7 +58,7 @@ class PorticoDocumentationSpider(BaseDocumentationSpider):
def _is_external_url(self, url: str) -> bool:
return (
not url.startswith("http://localhost:9981")
- or url.startswith(("http://localhost:9981/help", "http://localhost:9981/api"))
+ or url.startswith(("http://localhost:9981/help/", "http://localhost:9981/api"))
or self._has_extension(url)
)
diff --git a/web/templates/gear_menu.hbs b/web/templates/gear_menu.hbs
index ac8a0ec6884..dd8c19e78d4 100644
--- a/web/templates/gear_menu.hbs
+++ b/web/templates/gear_menu.hbs
@@ -84,7 +84,7 @@
</li>
<li class="divider" role="presentation"></li>
<li role="presentation">
- <a href="/help" target="_blank" rel="noopener noreferrer" role="menuitem">
+ <a href="/help/" target="_blank" rel="noopener noreferrer" role="menuitem">
<i class="fa fa-question-circle" aria-hidden="true"></i> {{t 'Help center' }}
</a>
</li>
diff --git a/zerver/tests/test_urls.py b/zerver/tests/test_urls.py
index cc31cc6869e..bb281534a72 100644
--- a/zerver/tests/test_urls.py
+++ b/zerver/tests/test_urls.py
@@ -74,7 +74,7 @@ class PublicURLTest(ZulipTestCase):
# Add all files in help documentation directory (except for 'index.md',
# 'missing.md' and `help/include/` files) to `get_urls['200']` list.
- for doc in os.listdir("./help"):
+ for doc in os.listdir("./help/"):
if doc.startswith(".") or "~" in doc or "#" in doc:
continue # nocoverage -- just here for convenience
if doc not in {"index.md", "include", "missing.md"}: