fix bug in redirect handler

minor cleanup in TestPatImplicitRedirect
Merge remote-tracking branch 'origin/redirect-fix'