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
This commit is contained in:
Jeremy Stanley 2022-01-10 17:04:01 +00:00
parent a211740705
commit a6364c6894
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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