Tweak the prerelease redirects for server/workstation/atomic.

If using the default lang, there will not be a /NN/ code in the url resulting in the redirect failing to work.
So, we drop the / on the end and it works for both /en/workstation/prerelease and /workstation/prerelease.
We need to fix this so users aren't directed to a Fedora 28 prerelease page even before Beta.
This commit is contained in:
Kevin Fenzi 2018-03-12 18:52:46 +00:00
parent 37281b2e13
commit d6bfb71113

View file

@ -350,22 +350,22 @@
- role: httpd/redirectmatch
name: prerelease-to-final-gfo-ws
website: getfedora.org
regex: /(.*)/workstation/prerelease.*$
target: https://getfedora.org/$1
regex: /(.*)workstation/prerelease.*$
target: https://getfedora.org/$1/workstation
when: env != 'staging'
- role: httpd/redirectmatch
name: prerelease-to-final-gfo-srv
website: getfedora.org
regex: /(.*)/server/prerelease.*$
target: https://getfedora.org/$1
regex: /(.*)server/prerelease.*$
target: https://getfedora.org/$1/server
when: env != 'staging'
- role: httpd/redirectmatch
name: prerelease-to-final-gfo-atomic
website: getfedora.org
regex: /(.*)/atomic/prerelease.*$
target: https://getfedora.org/$1
regex: /(.*)atomic/prerelease.*$
target: https://getfedora.org/$1/atomic
when: env != 'staging'
- role: httpd/redirectmatch