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:
parent
a211740705
commit
a6364c6894
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user