From 281bb5fe41edc87de864046b6ea6973bd8363e4a Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Sun, 25 Feb 2024 11:08:31 +0100 Subject: [PATCH 1/2] governance: Use non-localized fragment identifiers This allows us to use them in redirects regardless of the locale. --- templates/governance/group-team.html.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/governance/group-team.html.hbs b/templates/governance/group-team.html.hbs index 5fd32b72..fcabea65 100644 --- a/templates/governance/group-team.html.hbs +++ b/templates/governance/group-team.html.hbs @@ -1,7 +1,7 @@ - +
-

{{team-text team name}}

+

{{team-text team name}}

From 863154fc4a0b625e48dccf3a7a5f94c1b523423f Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Sun, 25 Feb 2024 11:10:54 +0100 Subject: [PATCH 2/2] Add `/governance/teams/release` redirect The `release` team was moved to an `infra` subteam. This caused existing blogpost links to fail since the server is not aware of this change. This commit fixes the issue by adding an explicit redirect. --- src/redirect.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/redirect.rs b/src/redirect.rs index f558e282..db6c8bc3 100644 --- a/src/redirect.rs +++ b/src/redirect.rs @@ -24,6 +24,11 @@ static PAGE_REDIRECTS: &[(&str, &str)] = &[ ("security.html", "policies/security"), ("team.html", "governance"), ("user-groups.html", "community"), + // Team changes + ( + "governance/teams/release", + "governance/teams/infra#team-release", + ), ]; static STATIC_FILES_REDIRECTS: &[(&str, &str)] = &[