docs: Remove HostnameAlreadyInUseBouncerError.docs_url.

Now that we introduced an URL for serving permalinks redirecting to
docs in #33444, the docs_url mechanism is no longer needed, as we can
have a URL that's safe to hard-code in register_server.py.

The HostnameAlreadyInUseBouncerError.docs_url has been merged in main
briefly enough, that this should be safe to remove.
This commit is contained in:
Mateusz Mandera
2025-02-13 22:18:17 +08:00
committed by Tim Abbott
parent 0a45a289f2
commit a8fbf6d5d5
5 changed files with 10 additions and 6 deletions

View File

@@ -273,6 +273,7 @@ def doc_permalinks_view(request: HttpRequest, doc_id: str) -> HttpResponse:
"usage-statistics": "https://zulip.readthedocs.io/en/latest/production/mobile-push-notifications.html#uploading-usage-statistics",
"basic-metadata": "https://zulip.readthedocs.io/en/latest/production/mobile-push-notifications.html#uploading-basic-metadata",
"why-service": "https://zulip.readthedocs.io/en/latest/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",
}
redirect_url = DOC_PERMALINK_MAP.get(doc_id)