Merge branch 'backport-ctest_submit-follow-redirects' into release-3.26

Merge-request: !8873