FIX: Redirect to provided origin after auth (PR #12558)

It used to redirect to the destination_url cookie which sometimes is set incorrectly.

GitHub