fix regression in redirect logic