I have a XMLPackage that checks if customer is logged and if not automatically redirects him to the signin.aspx page, passing the returnURL as parameter, like this:

https://www.mysite.com/signin.aspx?Returnurl=v-85-loadform-quote-subscription.aspx?part=519-Air%20Spring&year=2009&make=CH1-Chrysler&model=PT%20CRUISER&cid=0

Notice that the returnURL carries together a querystring with a few parameters.

The problem is that after customer to sign in, it is bringing back only the FIRST parameter in the returnURL querystring, like this:

https://www.mysite.com/v-85-loadform-quote-subscription.aspx?part=519-Air%20Spring

How can I fix it?

Thanks!

in ML by (1.2k points)

1 Answer

0 votes
That is because your & in the returnURL query string is not encoded...try encoding it first...
by (6.9k points)
...