title: UI-Router isnt rendering childs correctly with templateurl in Asp.net Mvc
body: <p>I have states mentioned like this </p>
  
  <pre><code> $stateProvider
          .state('dashboard', {
              url: "/dashboard",
              views: {
                  content: { templateUrl: "/dashboard/index" }
              }
          }).state('accounts', {
              url: "/accounts",
              views: {
                  'content': { templateUrl: "/accounts/index" }
              }
          })
          .state('accounts.add', {
              url: "/add",
              views: {
                  'content': { templateUrl: "/accounts/add" }
              }
          });
  </code></pre>
  
  <p>and the URLS are </p>
  
  <pre><code>&lt;a class="list-group-item submenu" ui-sref="accounts"&gt;Service Users&lt;/a&gt;
  &lt;a class="list-group-item submenu" ui-sref="accounts.add"&gt;Add User&lt;/a&gt;
  </code></pre>
  
  <p>I am using asp.net Mvc so my Controller which serves the templates currently looks like this </p>
  
  <pre><code> public class AccountsController : Controller
  {
      //
      // GET: /Accounts/
      public ActionResult Index()
      {
          return Request.IsAjaxRequest() ? (ActionResult)PartialView("_Icons") : View();
      }   
  
      public ActionResult Add()
      {
          return Request.IsAjaxRequest() ? (ActionResult)PartialView("_Add") : View();
      }
  }
  </code></pre>
  
  <p>But whenever I make request to the state <code>accounts.add</code> then it always calls the <code>accounts</code> state .And renders the <code>_icons</code> view which is nothing but a partial view as <code>_icons.cshtml</code>. I can see in firebug that url has been called but it never gets rendered . WHY ????</p>
  
  <p>The firebug output is something like this </p>
  
  <pre><code>GET http://localhost:2060/accounts/index 200 OK 2ms
  GET http://localhost:2060/accounts/add 200 OK 5ms
  </code></pre>
  
  <p>This is what happens when I click <code>ui-sref="accounts.add"</code> and ends up rendering the index action . Can someone tell me why is this happening ? It shouldn't be happening . Is there something which I am missing out as convention from ui-router ?</p>