diff --git a/.docs/index.html.tpl b/.docs/index.html.tpl
index d92d7c4b18e9b7f375ce12fa8de62407030bc9f3..df2696f5ba8debded43f945c7e931dea1c7c5cf3 100644
--- a/.docs/index.html.tpl
+++ b/.docs/index.html.tpl
@@ -3,16 +3,16 @@
 <head>
     <meta charset="UTF-8">
     <title>Redirect Notice</title>
-    <meta http-equiv="Refresh" content="0; url='/infrastructures/dbrepo/${DOC_VERSION}/'" />
+    <meta http-equiv="Refresh" content="0; url='/infrastructures/dbrepo/DOC_VERSION/'" />
 </head>
 <body>
 <h1>Redirect Notice</h1>
 <p>
-    This page should automatically open the documentation for version <code>${DOC_VERSION}</code>. In case this page does not load the site is
+    This page should automatically open the documentation for version <code>DOC_VERSION</code>. In case this page does not load the site is
     available at:
 </p>
 <p>
-    <a href="/infrastructures/dbrepo/${DOC_VERSION}/">/infrastructures/dbrepo/${DOC_VERSION}/</a>
+    <a href="/infrastructures/dbrepo/DOC_VERSION/">/infrastructures/dbrepo/DOC_VERSION/</a>
 </p>
 </body>
 </html>
\ No newline at end of file
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 61cd8899829ee89cee1617de8ac34168b216e0eb..122597e69534f19b49a1361c7db99f398bf0f811 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -476,8 +476,8 @@ release-docs:
     - "cp .docs/.swagger/custom.css ./final/${DOC_VERSION}/rest/custom.css" # swagger
     - "cp -r ./site/* ./final/${DOC_VERSION}" # mkdocs
     - "cp .docker/dist.tar.gz ./final/${APP_VERSION}/dist.tar.gz" # dist
-    - "cp .docs/index.html.tpl ./final/${APP_VERSION}/index.html" # redirect patch docs
-    - sed -i "s/\${DOC_VERSION}/${DOC_VERSION}/g" ./final/${APP_VERSION}/index.html
+    - "cp .docs/index.html.tpl ./final/index.html" # redirect patch docs
+    - sed -i "s/DOC_VERSION/$DOC_VERSION/g" ./final/index.html
     - "bash ./.gitlab/gen-badge.sh"
     - eval $(ssh-agent -s)
     - "mkdir -p /root/.ssh"