Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
docs: Add redirects for moved pages about stream archiving.
Mateusz Manderaba7f2a22e610
diff --git a/zerver/lib/test_helpers.py b/zerver/lib/test_helpers.pyindex 4c5455127ee..7741fbf371d 100644--- a/zerver/lib/test_helpers.py+++ b/zerver/lib/test_helpers.py@@ -496,6 +496,8 @@ def write_instrumentation_reports(full_suite: bool, include_webhooks: bool) -> N"confirmation_key/","node-coverage/(?P<path>.+)","docs/(?P<path>.+)",+ "help/delete-a-stream",+ "api/delete-stream","casper/(?P<path>.+)","static/(?P<path>.+)","flush_caches",diff --git a/zproject/urls.py b/zproject/urls.pyindex 64ac4b7bc57..e12a56cad9b 100644--- a/zproject/urls.py+++ b/zproject/urls.py@@ -764,6 +764,11 @@ api_documentation_view = MarkdownDirectoryView.as_view(template_name="zerver/documentation_main.html", path_template="/zerver/api/%s.md")urls += [+ # Redirects due to us having moved the docs:+ path(+ "help/delete-a-stream", RedirectView.as_view(url="/help/archive-a-stream", permanent=True)+ ),+ path("api/delete-stream", RedirectView.as_view(url="/api/archive-stream", permanent=True)),path("help/", help_documentation_view),path("help/<path:article>", help_documentation_view),path("api/", api_documentation_view),