Smart redirection
Smart redirection on all pages