Modify redirection for profile/login/logout/registration.