add the shared_key and the external_id when doing the redirect