Proxy_pass strips http when there are 2 or more redirect link

Hello G.s,

I am using proxy_pass to do something like this:

proxy_pass
‘somedomain.com’

But what happens is it passes the request directly to
“http://www.flipkart.com/%3Fpid=9780099579939%26affid%3Dtyroo%26cmpid%3Daffiliate_promo_tyroo”
(second http part of the proxy_pass link)

It does not hit somedomain.com at all.

Can anyone help me with the same?

Thanks!