diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0332e27dbaa1254ce7a2eb7c9fb03e0c3de76cc2..906a1f6ad45b74efee2c7adfb5345649993c7778 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -50,7 +50,7 @@ ragdoc_view:
   script:
     - DATA_DIR=$(pwd -P)/data
     - cd /ragdoc-view
-    - ( cd src/ && ln -s $DATA_DIR )
+    - ( cd src/ && rm -rf data && ln -s $DATA_DIR )
     - /ragdoc-view/build-view.sh --output-path=/dist
   artifacts:
     paths: