diff --git a/packages/common/test/unit.js b/packages/common/test/unit.js
index e800730c41d75d14b3bdadc4a4910b59076a8337..cb144a313a8e3629d6a218331f438d6444dc7b69 100644
--- a/packages/common/test/unit.js
+++ b/packages/common/test/unit.js
@@ -21,4 +21,12 @@ describe('utils', () => {
         var node = document.createElement('test-some-element');
         expect(node.foo).to.equal(42);
     });
+
+    it('getAPiUrl', () => {
+        assert(utils.getAPiUrl().startsWith("http"));
+    });
+
+    it('setting', () => {
+        assert(utils.setting('apiBaseUrl').startsWith("http"));
+    });
 });
diff --git a/packages/common/utils.js b/packages/common/utils.js
index 002d0538bad6bdd1c706f3ddf0b384544cff7404..28fd764119d3a5790359b40aa428660b16e479a6 100644
--- a/packages/common/utils.js
+++ b/packages/common/utils.js
@@ -42,7 +42,7 @@ export default {
     },
 
     getAPiUrl: (path = "", withPrefix = true) => {
-        return env.apiBaseUrl + (withPrefix ? vars.apiUrlPrefix : "") + path;
+        return env.apiBaseUrl + (withPrefix ? env.apiUrlPrefix : "") + path;
     },
 
     /**