title: RequireJS does not follow relative path for data-main with baseUrl set
body: <p>Using requireJS, I am trying to specify a path for my data-main that is different from the baseUrl. It seems that requireJS is ignoring whatever I type before the file name, and always look for the file in the baseUrl folder.</p>
  
  <p>I have the following folder structure : </p>
  
  <pre><code>index.html
  scripts/
    lib/
      require.js
    test/
      main2.js
    config.js
  </code></pre>
  
  <p>Contents of index.html : </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8" /&gt;
          &lt;title&gt;Test&lt;/title&gt;
          &lt;script data-main="test/main2" src="scripts/lib/require.js"&gt;&lt;/script&gt;
          &lt;script src="scripts/config.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
  
      &lt;body&gt;&lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Contents of config.js : </p>
  
  <pre><code>requirejs.config({
      baseUrl: "scripts"
  });
  </code></pre>
  
  <p>And I am getting a 404 error for : GET [...]/scripts/main2.js , even though it should be looking for [...]/scripts/test/main2.js. If I remove the config.js file and use data-main="scripts/test/main2" it works, but I would like to be able to specify a baseUrl for my project.</p>
  
  <p>Any ideas ?</p>
  
  <p>Edit : following the answer by Waxen : </p>
  
  <ul>
  <li>Even if I use "scripts/test/main2", "/scripts/test/main2", or "whateverIWant/main2" in my data-main, it oddly always looks for "scripts/main2.js"</li>
  </ul>
  
  <p>Note that I am using requirejs 2.1.8</p>