Change the URL for redirect such that if a batch fails we redirect corre...

...ctly.