Allow the pipeline to change the redirect url.

Moves the popping of the redirect value from the session to after the
pipe line executes.