mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
docs: Add redirects for moved pages about stream archiving.
We're renaming "stream deletion" language to "stream archiving" and these pages were moved in the process, so we should keep redirects for them for a while.
This commit is contained in:
committed by
Tim Abbott
parent
82b43a8cfe
commit
ba7f2a22e6
@@ -496,6 +496,8 @@ def write_instrumentation_reports(full_suite: bool, include_webhooks: bool) -> N
|
|||||||
"confirmation_key/",
|
"confirmation_key/",
|
||||||
"node-coverage/(?P<path>.+)",
|
"node-coverage/(?P<path>.+)",
|
||||||
"docs/(?P<path>.+)",
|
"docs/(?P<path>.+)",
|
||||||
|
"help/delete-a-stream",
|
||||||
|
"api/delete-stream",
|
||||||
"casper/(?P<path>.+)",
|
"casper/(?P<path>.+)",
|
||||||
"static/(?P<path>.+)",
|
"static/(?P<path>.+)",
|
||||||
"flush_caches",
|
"flush_caches",
|
||||||
|
|||||||
@@ -764,6 +764,11 @@ api_documentation_view = MarkdownDirectoryView.as_view(
|
|||||||
template_name="zerver/documentation_main.html", path_template="/zerver/api/%s.md"
|
template_name="zerver/documentation_main.html", path_template="/zerver/api/%s.md"
|
||||||
)
|
)
|
||||||
urls += [
|
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/", help_documentation_view),
|
||||||
path("help/<path:article>", help_documentation_view),
|
path("help/<path:article>", help_documentation_view),
|
||||||
path("api/", api_documentation_view),
|
path("api/", api_documentation_view),
|
||||||
|
|||||||
Reference in New Issue
Block a user