use correct hook for redirect
Merge pull request #10 from geecu/fix/correct_redirection

use correct hook for redirect