Skip adding external domains to Pages redirects
Fix an edge case of redirects #1157 (comment 909723131).
The docs:clean_redirects
task was adding external domains to redirects.yaml
, but this is not yet supported by Pages redirects https://docs.gitlab.com/ee/user/project/pages/redirects.html
To test locally:
- Comment out all the
git
commands from the task - Edit
gitlab/doc/push_rules/push_rules.md
to include an external site underredirect_to
. - Change the date to be less than today
- Run the task
bin/rake docs:clean_redirects
The file should be deleted, but an entry not added in redirects.yaml
.
_We should write some proper tests instead of this, but it will do for now
Closes #1157 (closed)