fix bug 841735 - Prevent self-redirecting