I'm using Response.Redirect to to refresh a page with a parameter appended to the end of the URL but for some reason the parameter is being moved to a different part of the URL.
Here's an example, my URL is http://domain.com/en/members/careers/vacancies/?output=html
I want this URL to refresh with the following: http://domain.com/en/members/careers/vacancies/?output=html¶m=1
I want to include the extra parameter so I used the following function:
string url = CurrentPage.LinkURL;
Response.Redirect(url+"?output=html¶m=1");
Yet when the page refreshes it has redirected to the following URL: http://domain.com/en/?output=html/members/careers/vacancies/
I have no idea why the the output parameter is being put there after /en/ or where my second parameter has gone.
I've been at this for a few hours and I'm going crazy looking at it, any suggestions on this would be greatly appreciated. Thanks!
CurrentPage.LinkURL?