title: Why does Url.IsLocalUrl return false if the URL contains a fragment?
body: <p>I'm using <code>Url.IsLocalUrl</code> to check if the return URL passed to my authentication action is local or not. It works fine as long as there is no fragment in the URL. That is,
  <code>/t/test-team-3/tasks/lists/15</code> returns true, but <code>/t/test-team-3/tasks#/lists/15</code> returns false.</p>
  
  <p>What's the reasoning behind this? Is there some obscure security issue that could manifest itself in the fragment, or can I safely ignore the fragment when I'm checking if the URL is local?</p>