Masgan, please explain what do you want to achieve in the end? Why do you need redirect? To which page you want users to be redirected?
If you want to disable the "Confirm email" functionality you may do it via the Admin Area>Settings>User settings section.
In this case after registration user will be redirected to the main page.