title: HttpContext AbsolutePath goes to wrong URL for aliased pages - C#
body: <p>On my website each page has links that are created in the codebehind, where the links are the current URL with one query parameter changed. To do this, I've been using this method (this specific example is for the pagination):</p>
  
  <pre><code>var queryValues = HttpUtility.ParseQueryString(HttpContext.Current.Request.QueryString.ToString());
  queryValues.Set("page", num);
  string url = HttpContext.Current.Request.Url.AbsolutePath;
  string updatedQueryString = "?" + queryValues.ToString();
  string newUrl = url + updatedQueryString;
  return newUrl;
  </code></pre>
  
  <p>This worked on my local version fine. However, when I created each page in Ektron and added a manual alias, the URLs generated still went to the file location in the solution. For example, my original page was /WebAssets/Templates/EventListView.aspx. I created the page in Ektron as /Alumni/Events/List. I can go to /Alumni/Events/List, but then when I click on a page button the page that loads is /WebAssets/Templates/EventListView.aspx?page=2 instead of /Alumni/Events/List/?page=2</p>