hearsayit/HearsayRequireJSBundle — Issue #1: baseUrl is not absolute
Author: ismell
Created: 2012-01-24 13:52:33+00:00
State: open

My template has the following

```
{% block javascripts %}
{{ parent() }}

{% endblock %}
```

My Config looks like so

```

hearsay_require_js:
base_directory: %kernel.root_dir%/scripts
paths:
jquery:
location: //ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min
external: true
wedcore: '@WedCoreBundle/Resources/scripts'
optimizer:
path: /path/to/r.js
excludes: [ excluded/module ] # Modules to exclude from the build (optional)
options: { skipModuleInsertion: true } # Additional options to pass to the optimizer (optional)
```

When I hit the following url: http://rangelwed/app_dev.php/reception/edit

My require block generates the following

```

```

if you notice the baseUrl it's relative. This causes the request to wedcore/edit to go to http://rangelwed/app_dev.php/reception/js/wedcore/edit.js. This is incorrect and instead should go to http://rangelwed/app_dev.php/js/wedcore/edit.js.

So the base URL should be rendered as /app_dev.php/js/.

Thanks,
Raul