From a6364c68944910650069bcca18ca8edc7dd1607c Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Mon, 10 Jan 2022 17:04:01 +0000 Subject: [PATCH] Drop explicit latest from openinfra redirects The redirects for refstack and python-tempestconf, which moved into the openinfra namespace on docs.opendev.org, does not need to specify latest on the target as the old and new paths both used similar redirects already (unlike docs from the infra subtree, which was likely the source of the confusion here). Drop the use of latest for these, since otherwise old bookbarks or search results could result in doubling the latest when the redirect on the new side is applied. Change-Id: Ieffb7ce6d84888588ee3c51388923b6862136bca --- www/.htaccess | 4 ++-- www/redirect-tests.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/www/.htaccess b/www/.htaccess index e087aa1ff1..523f808b85 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -297,10 +297,10 @@ redirectmatch 301 /infra/nodepool/feature/zuulv3(.*)$ https://zuul-ci.org/docs/n # Redirect https://docs.openstack.org/python-tempestconf to # https://docs.opendev.org/openinfra/python-tempestconf -{{ deep_links('/python-tempestconf', 'https://docs.opendev.org/openinfra/python-tempestconf/latest/$1') }} +{{ deep_links('/python-tempestconf', 'https://docs.opendev.org/openinfra/python-tempestconf/$1') }} # End redirect python-tempestconf # Redirect https://docs.openstack.org/refstack to # https://docs.opendev.org/openinfra/refstack -{{ deep_links('/refstack', 'https://docs.opendev.org/openinfra/refstack/latest/$1') }} +{{ deep_links('/refstack', 'https://docs.opendev.org/openinfra/refstack/$1') }} # End redirect refstack diff --git a/www/redirect-tests.txt b/www/redirect-tests.txt index 049e75da40..3e9cdc40d8 100644 --- a/www/redirect-tests.txt +++ b/www/redirect-tests.txt @@ -325,10 +325,10 @@ # Redirect https://docs.openstack.org/python-tempestconf to # https://docs.opendev.org/openinfra/python-tempestconf -{{ deep_links('/python-tempestconf', 'https://docs.opendev.org/openinfra/python-tempestconf/latest') }} +{{ deep_links('/python-tempestconf', 'https://docs.opendev.org/openinfra/python-tempestconf') }} # End redirect python-tempestconf # Redirect https://docs.openstack.org/refstack to # https://docs.opendev.org/openinfra/refstack -{{ deep_links('/refstack', 'https://docs.opendev.org/openinfra/refstack/latest') }} +{{ deep_links('/refstack', 'https://docs.opendev.org/openinfra/refstack') }} # End redirect refstack