# Dojo config: Map with absolute path value

**URL:** <https://discourse.dojo.io/t/dojo-config-map-with-absolute-path-value/106>\
**Category:** Dojo 1.x users\
**Created:** [December 21, 2017, 12:31am UTC](https://discourse.dojo.io/t/dojo-config-map-with-absolute-path-value/106 "2017-12-21T00:31:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevenk](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@stevenk](https://discourse.dojo.io/u/stevenk)\
**Post date:** [December 21, 2017, 12:31am UTC](https://discourse.dojo.io/t/dojo-config-map-with-absolute-path-value/106/1 "2017-12-21T00:31:47Z")

</div>

I’m using the `map` property in my dojoConfig (with no `baseUrl` explicitly set), like this:

```javascript
map: {
  'some/module': {
    'src/foo.js': 'baz/bar.js'
  }
},

```

But I’d like to load `bar.js` by an absolute path instead, like `https://some-host.com/bar.js`. I tried this:

```javascript
map: {
  'some/module': {
    'src/foo.js': 'https://some-host.com/bar.js'
  }
},

```

But that gives me `http://path-to-my-site.com/https:/some-host.com/bar.js`.

I haven’t been able to figure out how to load a module via its absolute path using the `map` config object. Any ideas?

---

<div class="post-metadata">

**Author:** ![dylan](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dojo.io/dylan/32/5_2.png) [@dylan](https://discourse.dojo.io/u/dylan)\
**Post date:** [December 21, 2017, 3:51pm UTC](https://discourse.dojo.io/t/dojo-config-map-with-absolute-path-value/106/2 "2017-12-21T15:51:22Z")

</div>

map is supposed to map AMD dependencies, and should generally not be used for mapping file names, though it worked ok in your first case.

I think here you actually want to specify paths inside the map, though honestly I don’t know if the syntax supports what you are trying to do. See [https://www.sitepen.com/blog/2013/06/20/dojo-faq-what-is-the-difference-packages-vs-paths-vs-aliases/](https://www.sitepen.com/blog/2013/06/20/dojo-faq-what-is-the-difference-packages-vs-paths-vs-aliases/) for a bit more detail on paths.
