return early for redirects

follow up on 
https://github.com/cakephp/docs/commit/553f148ae533b382eee670b348a02fd19f064ffb#commitcomment-3820097
and
https://github.com/cakephp/docs/pull/680