title: In an ASP.NET MVC Controller, how can I get the Redirect(string URL) method to not append a '#'?
body: <p>I have a controller in an ASP.NET MVC 5 project that return the result of Redirect(url) where url is a string. </p>
  
  <p>Essentially I have this:</p>
  
  <pre><code>string url = "calendar/addevent";
  return Redirect(url);
  </code></pre>
  
  <p>The result in the browser is loading a URL like this: <a href="http://example.com/calendar/addevent#" rel="nofollow">http://example.com/calendar/addevent#</a></p>
  
  <p>This is fine in IE, but Chrome scrolls to the bottom of the page looking for an anchor because of the '#'. </p>
  
  <p>Any idea on how to not include the '#' on the end of the URL?</p>
  
  <p>Update 10/21/15</p>
  
  <p>This is being returned from this method in the Account controller found in the template MVC 5 project using single-user authentication:</p>
  
  <pre><code>private ActionResult RedirectToLocal(string returnUrl)
      {
          if (Url.IsLocalUrl(returnUrl))
          {
              return Redirect(returnUrl);
          }
          return RedirectToAction("Index", "Home");
      }
  </code></pre>
  
  <p>The Url.IsLocalUrl is true and, if I debug and read the object returned from Redirect(returnUrl), the URL does not have the '#'. The browser is still somehow getting it though...</p>