Redirect "/{version}/archives" to "/archives"
All branches should point to the same archives page which would be the only one needed to be updated (master
).
Check CI_COMMIT_REF_NAME
and if it's not master
, redirect /$version/archives/
to /archives
. We need this so that we have to update only master's data/versions.yml
.
E.g., /10.6/archives/
redirect to /archives/
.
Edited by Achilleas Pipinellis