Fixed bug: OAuth connect url encodes query parameters of destination URL and thus redirects to wrong URL.