diff --git a/inventory_provider/static/inventoryProvider.js b/inventory_provider/static/inventoryProvider.js
index df3ec25aea9ffafc74c1b0f405c4755d61353aaa..b5e2d2a45a7223d2f14eb5c147fa4c76118a497b 100644
--- a/inventory_provider/static/inventoryProvider.js
+++ b/inventory_provider/static/inventoryProvider.js
@@ -14,7 +14,6 @@ myApp.controller('inventoryProvider', function($scope, $http) {
 
     $http({
         method: 'GET',
-        url: 'http://localhost:7878/data/routers'
+        url: window.location.origin + "/data/routers"
     }).then(onSuccess, onError);
-console.log("HERE2");
 });
\ No newline at end of file