jrburke/requirejs — Issue #133: Inconsistent treatment of baseUrl between http:// and file:// schemes?
Author: kdonald
Created: 2011-10-21 19:26:41+00:00
State: open

I noticed if load my app by opening index.html directly on the filesystem, my root application module is unable to resolve:

```js
require.config({
baseUrl: "/src"
});
require(["rewardnetwork"], function(rewardnetwork) {
window.rewardnetwork = rewardnetwork;
});
```
To get "rewardnetwork" to load successfully, I had to remove the leading slash on the baseUrl path--so "/src" became "src". When my app is loaded from a HTTP URL, this tweak is not necessary.

Not sure if this is by design but it felt odd to me so just wanted to get a report in.