Skip to content

Commit

Permalink
Fixing basePath thanks to a comment by @paschdan
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Feb 12, 2014
1 parent 2d53465 commit 3f1f6fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions requirejs-bower-grunt.rst
Expand Up @@ -82,7 +82,7 @@ Before:
<script src="{{ asset('{{ assetsPath }}/vendor/requirejs/require.js') }}"></script>
<script>
requirejs.config({
baseUrl: '/{{ assetsPath }}/js'
baseUrl: '{{ app.request.basePath }}/{{ assetsPath }}/js'
});
// ...
</script>
Expand All @@ -94,7 +94,7 @@ After:
<script src="{{ asset('assets/vendor/requirejs/require.js') }}"></script>
<script>
requirejs.config({
baseUrl: '/assets/js'
baseUrl: '{{ app.request.basePath }}/assets/js'
});
// ...
</script>
Expand Down

0 comments on commit 3f1f6fb

Please sign in to comment.