Prevent of wrong redirects