mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
urls: Extend documentation URL redirects system to corporate landing pages.
Extends the URL redirect system used for documentation pages to corporate landing pages. This makes it easier and consistent for contributors who work on both areas to create new URL redirects when needed.
This commit is contained in:
committed by
Tim Abbott
parent
878b46e758
commit
5a7aa8228a
@@ -51,6 +51,14 @@ HELP_DOCUMENTATION_REDIRECTS: List[URLRedirect] = [
|
||||
URLRedirect("/help/web-public-streams", "/help/public-access-option"),
|
||||
]
|
||||
|
||||
LANDING_PAGE_REDIRECTS = [
|
||||
# Add URL redirects for corporate landing pages here.
|
||||
URLRedirect("/new-user/", "/hello"),
|
||||
URLRedirect("/developer-community/", "/development-community"),
|
||||
URLRedirect("/for/companies/", "/for/business"),
|
||||
URLRedirect("/for/working-groups-and-communities/", "/for/communities"),
|
||||
]
|
||||
|
||||
DOCUMENTATION_REDIRECTS = (
|
||||
API_DOCUMENTATION_REDIRECTS + POLICY_DOCUMENTATION_REDIRECTS + HELP_DOCUMENTATION_REDIRECTS
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user