title: Webstorm: "Cannot Resolve Directory"
body: <p>This is starting to bug me and I'd either like it turned off or fixed. So Webstorm has a sweet feature in it's HTML parser that will attempt to resolve directories in strings that are supposed to reference a file in your project. For example:</p>
  
  <p><img src="https://i.stack.imgur.com/z1kQ0.png" alt="two examples"></p>
  
  <p>Webstorm is correct. My front end code is all in <code>/app</code> but my server serves up files in app on the root, so in the web context <code>/app</code> is actually just <code>/</code>. As a side, this behavior also impacts my angular templates:</p>
  
  <p><img src="https://i.stack.imgur.com/e8R8S.png" alt="webstorm hates angular directive templateUrl"></p>
  
  <p>and my angular-ui routes (I imagine it would do that for regular angular routes as well).</p>
  
  <p><img src="https://i.stack.imgur.com/PC2KO.png" alt="webstorm hates angular routes templateUrl"></p>
  
  <p>Is there a way that I can change webstorm to treat <code>/app</code> as the root so this is a useful feature? If not, is there a way I can disable this? I tried going into the inspector, but couldn't find an option for it:</p>
  
  <p><img src="https://i.stack.imgur.com/MEEqL.png" alt="webstorm inspector"></p>
  
  <p>And no, it's not the XML one... I tried.</p>
  
  <p>Help appreciated. Thanks...</p>