title: sharepoint 2010 cannot get global navigation nodes in code
body: <p>I have sharepoint site and i want read in code global navigation information.</p>
  
  <p>On properties page:</p>
  
  <p>/_layouts/AreaNavigationSettings.aspx
  I added "location","organization","98" nodes.</p>
  
  <p><img src="https://i.stack.imgur.com/aCfJZ.png" alt="enter image description here"></p>
  
  <p>But when i am trying to get those nodes in code</p>
  
  <pre><code>  using (var site  = new Microsoft.SharePoint.SPSite(URL))
              {
                  using (var currentWeb = site.OpenWeb())
                  {
                 return currentWeb.Navigation.GlobalNodes;
  
              }
  </code></pre>
  
  <p>}</p>
  
  <p>I have always those nodes:</p>
  
  <ul>
  <li>Home </li>
  <li>Quick launch  </li>
  <li>SharePoint Top Navbar</li>
  </ul>
  
  <p>Why i have those strange nodes and how to get real globan naviigation/?</p>