Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
dev_urls: Make requests to /docs redirect to the index.
Alex Vandiver6ad777c86fa0
diff --git a/zerver/lib/test_helpers.py b/zerver/lib/test_helpers.pyindex e4903fa11f5..3c867570de3 100644--- a/zerver/lib/test_helpers.py+++ b/zerver/lib/test_helpers.py@@ -505,6 +505,7 @@ def write_instrumentation_reports(full_suite: bool, include_webhooks: bool) -> N"config-error/(?P<error_name>[^/]+)","confirmation_key/","node-coverage/(?P<path>.+)",+ "docs/","docs/(?P<path>.+)","casper/(?P<path>.+)","static/(?P<path>.+)",diff --git a/zproject/dev_urls.py b/zproject/dev_urls.pyindex 7e5c4abad45..53ac877d0b5 100644--- a/zproject/dev_urls.py+++ b/zproject/dev_urls.py@@ -7,7 +7,7 @@ from django.contrib.staticfiles.views import serve as staticfiles_servefrom django.http.request import HttpRequestfrom django.http.response import FileResponsefrom django.urls import path-from django.views.generic import TemplateView+from django.views.generic import RedirectView, TemplateViewfrom django.views.static import servefrom zerver.views.auth import login_page@@ -52,6 +52,7 @@ urls = ["show_indexes": True,},),+ path("docs/", RedirectView.as_view(url="/docs/index.html")),path("docs/<path:path>",serve,