Inserting a redirect callback

This gives the ability to create a redirect using a framework.
Sorry, fixed it