Skip to content

Commit

Permalink
Prepend API_URL path to urlObject.path
Browse files Browse the repository at this point in the history
  • Loading branch information
durran authored and jfirebaugh committed Jul 19, 2017
1 parent 4d34d7d commit ca243c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/mapbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function makeAPIURL(urlObject: UrlObject, accessToken: string | null | void): st
urlObject.authority = apiUrlObject.authority;

if (apiUrlObject.path !== '/') {
urlObject.authority = `${urlObject.authority}${apiUrlObject.path}`;
urlObject.path = `${apiUrlObject.path}${urlObject.path}`;
}

if (!config.REQUIRE_ACCESS_TOKEN) return formatUrl(urlObject);
Expand Down

0 comments on commit ca243c7

Please sign in to comment.