Issue #3542974: Restore the destination parameter from the request query when falling back to the default login process.
Closes #3542974