Skip to content

Commit 7942837

Browse files
robgietemasneridagh
authored andcommitted
Fix image paths in development mode (#5429)
1 parent 8099991 commit 7942837

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

news/5429.bugfix

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix image paths in development mode. @robgietema

src/helpers/Api/APIResourceWithAuth.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const getAPIResourceWithAuth = (req) =>
2727
apiPath = settings.apiPath;
2828
}
2929
const request = superagent
30-
.get(`${apiPath}${APISUFIX}${req.path}`)
30+
.get(`${apiPath}${__DEVELOPMENT__ ? '' : APISUFIX}${req.path}`)
3131
.maxResponseSize(settings.maxResponseSize)
3232
.responseType('blob');
3333
const authToken = req.universalCookies.get('auth_token');

0 commit comments

Comments
 (0)