fix bug 841735 - Prevent self-redirecting
Merge pull request #929 from darkwing/self-redirect-841735

fix bug 841735 - Prevent self-redirecting