diff --git a/src/frontend/core/index.html b/src/frontend/core/index.html
index a7a0b292ef7bf7f6f7f80f76abd4b68ccde4611f..e848fb080ee707ca55c4f0f5b4cf9d763985c1fa 100644
--- a/src/frontend/core/index.html
+++ b/src/frontend/core/index.html
@@ -1,9 +1,14 @@
 <!doctype html>
 <html lang="fr">
 <head>
-    <base href="/" id="baseHref">
+    <base id="baseHref">
     <script type="text/javascript">
-        document.getElementById('baseHref').href = '/' + window.location.pathname.split('/')[1] + '/dist/';
+        let splitedUrl = window.location.pathname.split('/')[1];
+        if (typeof splitedUrl === 'undefined' || splitedUrl === '') {
+            document.getElementById('baseHref').href = '/dist/';
+        } else {
+            document.getElementById('baseHref').href = '/' + window.location.pathname.split('/')[1] + '/dist/';
+        }
     </script>
     <meta charset="utf-8">
     <title>Maarch Parapheur</title>