mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
corporate: Add canonical URLs.
This commit is contained in:
committed by
Tim Abbott
parent
f778c853ea
commit
a925671179
@@ -297,6 +297,7 @@ def team_view(request: HttpRequest) -> HttpResponse:
|
|||||||
"page_type": "team",
|
"page_type": "team",
|
||||||
"contributors": data["contributors"],
|
"contributors": data["contributors"],
|
||||||
},
|
},
|
||||||
|
"REL_CANONICAL_LINK": f"https://zulip.com{request.path}",
|
||||||
"date": data["date"],
|
"date": data["date"],
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
@@ -310,6 +311,7 @@ def landing_view(request: HttpRequest, template_name: str) -> HttpResponse:
|
|||||||
"billing_base_url": "",
|
"billing_base_url": "",
|
||||||
"tier_cloud_standard": str(CustomerPlan.TIER_CLOUD_STANDARD),
|
"tier_cloud_standard": str(CustomerPlan.TIER_CLOUD_STANDARD),
|
||||||
"tier_cloud_plus": str(CustomerPlan.TIER_CLOUD_PLUS),
|
"tier_cloud_plus": str(CustomerPlan.TIER_CLOUD_PLUS),
|
||||||
|
"REL_CANONICAL_LINK": f"https://zulip.com{request.path}",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -318,7 +320,9 @@ def landing_view(request: HttpRequest, template_name: str) -> HttpResponse:
|
|||||||
|
|
||||||
@add_google_analytics
|
@add_google_analytics
|
||||||
def hello_view(request: HttpRequest) -> HttpResponse:
|
def hello_view(request: HttpRequest) -> HttpResponse:
|
||||||
return TemplateResponse(request, "corporate/hello.html", latest_info_context())
|
context = latest_info_context()
|
||||||
|
context["REL_CANONICAL_LINK"] = "https://zulip.com/"
|
||||||
|
return TemplateResponse(request, "corporate/hello.html", context)
|
||||||
|
|
||||||
|
|
||||||
@add_google_analytics
|
@add_google_analytics
|
||||||
@@ -381,6 +385,7 @@ def communities_view(request: HttpRequest) -> HttpResponse:
|
|||||||
request,
|
request,
|
||||||
"corporate/communities.html",
|
"corporate/communities.html",
|
||||||
context={
|
context={
|
||||||
|
"REL_CANONICAL_LINK": f"https://zulip.com{request.path}",
|
||||||
"eligible_realms": eligible_realms,
|
"eligible_realms": eligible_realms,
|
||||||
"org_types": org_types,
|
"org_types": org_types,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user