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.

docs: Point the registration transfer permalink at the stable docs.

Prakhar Pratyush8d201fc69a0b
diff --git a/zerver/tests/test_home.py b/zerver/tests/test_home.py
index a2cd11f7fb6..c9a36125655 100644
--- a/zerver/tests/test_home.py
+++ b/zerver/tests/test_home.py
@@ -1568,7 +1568,7 @@ class TestDocRedirectView(ZulipTestCase):
self.assertEqual(result.status_code, 302)
self.assertEqual(
result["Location"],
- "https://zulip.readthedocs.io/en/latest/production/mobile-push-notifications.html#moving-your-registration-to-a-new-server",
+ "https://zulip.readthedocs.io/en/stable/production/mobile-push-notifications.html#moving-your-registration-to-a-new-server",
)
result = self.client_get("/doc-permalinks/invalid-doc-id")
diff --git a/zerver/views/home.py b/zerver/views/home.py
index 2a80d9de990..6a61ad2067d 100644
--- a/zerver/views/home.py
+++ b/zerver/views/home.py
@@ -292,7 +292,7 @@ def doc_permalinks_view(request: HttpRequest, doc_id: str) -> HttpResponse:
"usage-statistics": "https://zulip.readthedocs.io/en/stable/production/mobile-push-notifications.html#uploading-usage-statistics",
"basic-metadata": "https://zulip.readthedocs.io/en/stable/production/mobile-push-notifications.html#uploading-basic-metadata",
"why-service": "https://zulip.readthedocs.io/en/stable/production/mobile-push-notifications.html#why-a-push-notification-service-is-necessary",
- "registration-transfer": "https://zulip.readthedocs.io/en/latest/production/mobile-push-notifications.html#moving-your-registration-to-a-new-server",
+ "registration-transfer": "https://zulip.readthedocs.io/en/stable/production/mobile-push-notifications.html#moving-your-registration-to-a-new-server",
}
redirect_url = DOC_PERMALINK_MAP.get(doc_id)