title: Redirect to Page but specific Tab
body: <p>I have used <a href="https://stackoverflow.com/questions/7725474/redirecttoaction-with-tab-id">this</a> as an example of what I am trying to do.</p>
  
  <p>I have a tabbed page.</p>
  
  <p>In my Controller I want to redirect to a page but a specific tab on that page.</p>
  
  <p>Now when I am on that page, and hover over the tab the link is <code>http://localhost:xxxxx/OInfoes/Details/2#phases</code></p>
  
  <p>So in my controller I did this to try and recreate the same link:</p>
  
  <pre><code>return new RedirectResult(Url.Action("Details", "OInfoes", new { id = phase.OID }) + "#phases");
  </code></pre>
  
  <p>This gives me the correct link but it doesn't put me on the correct tab.</p>
  
  <p>How do I get this to work?</p>
  
  <p>My HTML for the tabs is below:</p>
  
  <pre><code>&lt;ul class="nav nav-tabs"&gt;
      &lt;li class="active"&gt;&lt;a href="#oInfo" data-toggle="tab"&gt;Information&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#reports" data-toggle="tab"&gt;Previous Reports&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#phases" data-toggle="tab"&gt;Previous/Current Phases&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>