Thanks for you reply.
The "code" param is coming from Social site and since we setup ADFS at IHS level its redirecting to ADFS page. I would like to know if we can change any setting so that "code" param will not redirect to ADFS page.
Example:
When I pass /?code= in the URL its redirecting to ADFS login page, however when I pass /?abc= its not redirecting to ADFS login page