title: MVC5 Log Off link fails from different Areas
body: <p>I have an MVC5 application with a number of different Areas. The project was created with a Log Off link in the navbar, but if the user is in any of the Areas, the link is broken. I thought adding:</p>
  
  <pre><code>new { area = "" }
  </code></pre>
  
  <p>would point the link back to the right place but either it doesn't or I tried it in the wrong place. Code as below:</p>
  
  <pre><code>    @using Microsoft.AspNet.Identity
      @if (Request.IsAuthenticated)
      {
          using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id =  "logoutForm", @class = "navbar-right" }))
          {
              @Html.AntiForgeryToken()
  
              &lt;ul class="nav navbar-nav navbar-right"&gt;
                &lt;li&gt;
                   @Html.ActionLink("Hello " + User.Identity.GetUserName(), "Manage", "Account", routeValues: null, htmlAttributes: new { title = "Manage" })
                &lt;/li&gt;
                &lt;li&gt;&lt;a href="javascript:document.getElementById('logoutForm').submit()"&gt;Log off&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
          }
       }
       else
       {
          &lt;ul class="nav navbar-nav navbar-right"&gt;
              &lt;li&gt;@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })&lt;/li&gt;
          &lt;/ul&gt;
       }
  </code></pre>
  
  <p>Any ideas on what needs to be changed to have the Log Off work regardless of what Area the user is currently in?</p>