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
http://affiliates.somedomain.com/ez/ciaapkznke/&subid1=&lnkurl=http://www.flipkart.com/%3Fpid=9780099579939%26affid%3Dtyroo%26cmpid%3Daffiliate_promo_tyroo

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 http://affiliates.somedomain.com/ez/ciaapkznke/ at all.

Can anyone help me with the same?

Thanks!