title: MVC4 and dropdown using onchange
body: <p>I've searched several posts on this and the methods all would normally work, however...
  I'm in an environment where we use 3 different servers (Dev, UAT and Prod).  All 3 have differing URL structures:</p>
  
  <pre><code>http://dev.com/myusername/applicationname (Dev)
  http://uat.com/applicationname (UAT)
  http://prod.com/applicationname (Prod)
  </code></pre>
  
  <p>The issue that I'm having is when I try to use a dropdown I'm having problems getting the url right.  The issue is when I use the following code to populate my dropdown: </p>
  
  <pre><code> @Html.DropDownList("Owners", ViewData["Owners"] as SelectList, new { onchange = "document.location.href='/Builds/' + this.options[this.selectedIndex].value;" })
  </code></pre>
  
  <p>It handles the event just fine, but produces a URL of:
  <a href="http://dev.com/Builds/value" rel="nofollow">http://dev.com/Builds/value</a>.  I need it to be <a href="http://dev.com/myusername/application/Builds/value" rel="nofollow">http://dev.com/myusername/application/Builds/value</a>.</p>
  
  <p>Any ideas on how I can accomplish this?</p>