Hi,
I have deployed my web part to a SharePoint environment having alternate accessing mapping configured. The public Url is https://sharepoint.com and the internal url for the same is http://internal-sharepoint.com
On one button click, i need to redirect the url to the same page with some additional parameter in query string.
I tried with both SPcontext.Current.Web.Url and Page.Request.Url.ToString() and both of them seem to give me the internal Url rather than the mapped url.
So the sequence is User types in https://sharepoint.com, clicks on the button and gets redirected to http://internal-sharepoint.com?myparam=somthing. Rather i would expect it be https://sharepoint.com?myparam=somthing
Please let me know your thoughts.
Thanks