From f5368a271c71824923f43c11036fb8b454d38660 Mon Sep 17 00:00:00 2001 From: "Justin W. Flory (he/him)" Date: Wed, 15 Jan 2025 13:11:24 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20proxies-redirects:=20Redirect=20?= =?UTF-8?q?parameter=20for=20docs.fp.o/dei/=20redirect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit enhances the redirect regex used for the docs.fp.o redirect for the DEI Team documentation. I follow @kevin's example from the CPE to CLE docs redirect, which uses a parameter and redirects a specific page to the new address. Currently, the DEI Team docs redirect will take the user to the main page of the team, regardless of what specific page is visited. I also added a `docs` tag to the CLE tags redirect, since it is a Fedora Docs-specific redirect too. Signed-off-by: Justin W. Flory (he/him) --- playbooks/include/proxies-redirects.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/playbooks/include/proxies-redirects.yml b/playbooks/include/proxies-redirects.yml index fdbbe64e0f..90cd390c06 100644 --- a/playbooks/include/proxies-redirects.yml +++ b/playbooks/include/proxies-redirects.yml @@ -1,5 +1,5 @@ --- -- name: Set up those proxy redirects. Wow! +- name: Set up those proxy redirects. Wow! hosts: proxies_stg:proxies user: root gather_facts: true @@ -853,9 +853,9 @@ - role: httpd/redirectmatch shortname: 00-docs-dei - website: docs.fedoraproject.org - regex: (?i)^/en-US/diversity-inclusion - target: https://docs.fedoraproject.org/en-US/dei/ + website: "docs.fedoraproject.org" + regex: ^/en-US/diversity-inclusion/(.*)$ + target: https://docs.fedoraproject.org/en-US/dei/$1 tags: - docs @@ -925,3 +925,4 @@ target: https://docs.fedoraproject.org/en-US/cle/$1 tags: - cle + - docs