Clean up redirect url