Cleanup and support for destination_url parameter

I'd like to ask that you revert the indentation changes you made to this file. It's impossible to tell if the code was modified or simply indented, which creates an unreasonable amount of risk & work w/ minimal benefit. It's also out of scope for the purposes of your change.