title: Trying to use FindView with a path
body: <p>I'm trying to check if a couple of views exist by using paths. But the views cannot be found even if they do exist. </p>
  
  <pre><code>private string SelectFirstView(ControllerContext ctx, params string[] viewNames)
  {
      return viewNames.First(view =&gt; ViewExists(ctx, view));
  }
  
  private bool ViewExists(ControllerContext ctx, string name)
  {
      var result = ViewEngines.Engines.FindView(ctx, name, null);
      return result.View != null;
  }
  </code></pre>
  
  <p>And how I try to find the views:</p>
  
  <pre><code>var viewName = SelectFirstView(ctx, statusCodeName,
                                 "~/Error/" + statusCodeName,
                                 "~/Error/General",
                                 "~/Shared/Error",
                                 "Error");
  </code></pre>
  
  <p>Note that <code>"~/Shared/Error"</code> and <code>"Error"</code> is the same view, but only the latter is found.</p>