title: How to invoke an MVC action method from a href in an anchor?
body: <p>I'm using the markup as follows.</p>
  
  <pre><code>@Html.ActionLink(@User.Identity.Name, "LogOut", "Account")
  </code></pre>
  
  <p>Now, I need to add a span inside the anchor because I want to use glyphs from Bootstrap. As far my googlearch went, there's no way to specify it using the helper above. So, I've redesigned it to explicit HTML as follows.</p>
  
  <pre><code>&lt;a href="~/Account/LogOut"&gt;
    &lt;span class="glyphicon glyphicon-log-out"&gt;&lt;/span&gt;
    &lt;span&gt;@Global.LogOut @User.Identity.Name&lt;/span&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>It works <strong>but</strong> the link isn't always targeting the same address as the first example does. It's because I've got <em>en/</em> or <em>se/</em> etc. for language first. When routing based on MVC, the language prefix stays in place but it gets lost when specifying the URL explicitly.</p>
  
  <p>How can I specify a call to the specific action method?</p>