title: Asp.net Url loses page path on postback
body: <p>Background:
  We are redoing our website and trying to modernize it. We were initially experimenting with AngularJS but dropped it due to some of our users being on unsupported browsers. We ended up just doing VB webforms and updating the design and functionality of our site.</p>
  
  <p>I was having an issue with buttons or items that cause a postback. When the page tries to postback it hits to the path but loses everything between the hostname and the last "/"</p>
  
  <p>For example I have a login page set up in the location
  /Secure/Account/Login.aspx</p>
  
  <p>I have a route as well that directs from /Secure/Account/Login.</p>
  
  <p>So when you visit the page you are at:
  www.website.com/Secure/Accounts/Login</p>
  
  <p>When I click the login button though, instead of posting back, I am directed to:
  www.website.com/Login  which doesn't exist so I get an error.</p>
  
  <p>This occurs if I navigate to the page instead of using the route as well. So if I am at www.website.com/Secure/Accounts/Login.aspx and click the button, I end up on www.website.com/Login.aspx with an error. </p>
  
  <p>This doesn't affect pages in the root directory as long as they do not use routing attributes. We have some pages that use routing attributes that have the same issue though.</p>
  
  <p>We have page /Category.aspx in the root directory with the route
  /Category/{Attribute1}/{Attribute2}/ configured for the page.</p>
  
  <p>If I am on the page www.website.com/Category/Attribute1/Attribute2 when I click on a button that posts back, I end up at www.website.com/Attribute2 with an error. </p>