title: SAP Fiori controller not loading - SAP Web IDE
body: <p>Using the SAP Web IDE I have created a new application from a Master/Detail template. The application works with the views that where created initially. Now i am trying to add another view called "FileDetail" to load into the detail window. 
  I have added the view to the routes:</p>
  
  <pre><code>routing: {
      config: {
          routerClass: FileUtility.MyRouter,
          viewType: "XML",
          viewPath: "FileUtility.view",
          targetAggregation: "detailPages",
          clearTarget: false
      },
      routes: [
          {
              pattern: "",
              name: "main",
              view: "Master",
              targetAggregation: "masterPages",
              targetControl: "idAppControl",
              subroutes: [
                  {
                      pattern: "{file}",
                      name: "fileDetail",
                      view: "FileDetail"
                  },
                  {
                      pattern: "{entity}/:tab:",
                      name: "detail",
                      view: "Detail",
                      subroutes: [
  
                      ]
                  }
  
              ]
          },
          {
              name: "catchallMaster",
              view: "Master",
              targetAggregation: "masterPages",
              targetControl: "idAppControl",
              subroutes: [
                  {
                      pattern: ":all*:",
                      name: "catchallDetail",
                      view: "NotFound",
                      transition: "show"
                  }
              ]
          }
      ]
  }
  </code></pre>
  
  <p>}
  ( I know this is not right but im just trying to force it to load the page )
  When I the function</p>
  
  <pre><code>onFileSelect: function(oEvent) {
      this.getRouter().navTo("fileDetail", {
          from : "detail",
          file: oEvent.getSource().getBindingContext().getPath().slice(1)
      }, true);
  },
  </code></pre>
  
  <p>is called I get an error in the JS console </p>
  
  <pre><code>Uncaught Error: failed to load 'view/FileDetail.controller.js' from resources/view/FileDetail.controller.js: 404 - Resource could not be found!
  </code></pre>
  
  <p>Here is the tree
  <a href="https://i.stack.imgur.com/N9bWo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/N9bWo.png" alt="Tree"></a></p>
  
  <p>The only files i added where the FileDetail.controller.js and the FileDetail.view.xml and they where added with the new view wizard </p>
  
  <p>Thanks for your help!</p>