diff --git a/gitlab/functions.sh b/gitlab/functions.sh
index 55de9dffd1af206685c0cb59e4f5790be71da40f..a33a0207674bc816c6b120c3ccc751f88e7f26eb 100644
--- a/gitlab/functions.sh
+++ b/gitlab/functions.sh
@@ -249,7 +249,7 @@ dav_recursive_mkdir() {
     # make sure the current subpath folder is created
     local response
     # a 405 exit code is returned when the folder already exists
-    response=$(dav_mkdir "$current_subpath" 405)
+    response=$(dav_mkdir "$DOCSERVER/$current_subpath" 405)
     if [[ "${response}" == "405" ]]; then
       log_info "Directory ${current_subpath} already exists."
     else