From 4a06a1d787e66f112699db093732577044d63754 Mon Sep 17 00:00:00 2001
From: Martin Weise <martin.weise@tuwien.ac.at>
Date: Tue, 21 Jan 2025 08:58:23 +0100
Subject: [PATCH] Redirect

Signed-off-by: Martin Weise <martin.weise@tuwien.ac.at>
---
 .docs/index.html.tpl | 6 +++---
 .gitlab-ci.yml       | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.docs/index.html.tpl b/.docs/index.html.tpl
index d92d7c4b18..df2696f5ba 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 61cd889982..122597e695 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"
-- 
GitLab