send url through hook for redirection