From 06f906f57044122ba605b82582c93c3ae553d8d7 Mon Sep 17 00:00:00 2001 From: David Moreau Simard Date: Mon, 7 Jan 2019 21:15:20 -0500 Subject: [PATCH] Use relative path when retrieving config.json Using absolute prevents the web application from being hosted inside a subdirectory. Change-Id: Ie236372dd60f16a1f53c0f5d14b4a7675d7d1973 --- src/config/configActions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/configActions.js b/src/config/configActions.js index 455e9d2..08f092c 100644 --- a/src/config/configActions.js +++ b/src/config/configActions.js @@ -10,7 +10,7 @@ export function setConfig(config) { export function getConfig() { return dispatch => { - return axios.get("/config.json").then(response => { + return axios.get("config.json").then(response => { const config = response.data; dispatch(setConfig(config)); return response;