diff --git a/.env.dev b/.env.dev
index e27084a69d420605153126965060d66171b3a7f3..d42cdad02b312920fe355ab34dfcddd228c34fd3 100644
--- a/.env.dev
+++ b/.env.dev
@@ -1,4 +1,3 @@
-BACKEND_URL=http://localhost:6001
 API_AUTHENTICATION_REQUIRED=True
 CACHALOT_ENABLED=False
 RAVEN_ENABLED=false
diff --git a/front/config/prod.env.js b/front/config/prod.env.js
index fe0e80b8f7c6db0a9b7bae510a4129820bb4a62f..decfe36154adc59fbf4a432cecac77119bbcdbf7 100644
--- a/front/config/prod.env.js
+++ b/front/config/prod.env.js
@@ -1,4 +1,4 @@
 module.exports = {
   NODE_ENV: '"production"',
-  BACKEND_URL: '"' + (process.env.BACKEND_URL  || '/') + '"'
+  BACKEND_URL: '"/"'
 }
diff --git a/front/src/config.js b/front/src/config.js
index b0ceb789226223a80c51356e7598ba81fda52819..47d9d7b8b2cdc83ded7330e2400c48d4b72b8e2e 100644
--- a/front/src/config.js
+++ b/front/src/config.js
@@ -1,12 +1,6 @@
 class Config {
   constructor () {
     this.BACKEND_URL = process.env.BACKEND_URL
-    if (this.BACKEND_URL === '/') {
-      this.BACKEND_URL = window.location.protocol + '//' + window.location.hostname + ':' + window.location.port
-    }
-    if (this.BACKEND_URL.slice(-1) !== '/') {
-      this.BACKEND_URL += '/'
-    }
     this.API_URL = this.BACKEND_URL + 'api/v1/'
   }
 }