diff --git a/src/main/helm/templates/_helpers.tpl b/src/main/helm/templates/_helpers.tpl
index e9ae7291e02a0f3a14a4cc516b19af19ee498a2f..af6ba3eade67c3db52de7f493becae39e1330649 100644
--- a/src/main/helm/templates/_helpers.tpl
+++ b/src/main/helm/templates/_helpers.tpl
@@ -95,7 +95,11 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
 {{- end -}}
 
 {{- define "app.baseUrl" -}}
-{{ printf "https://%s-%s.%s" (include "app.ozgcloudBezeichner" .) (include "app.name" .) .Values.baseUrl }}
+{{- required "baseUrl muss angegeben sein" .Values.baseUrl }}
+{{- end -}}
+
+{{- define "app.baseDomain" -}}
+{{ printf "%s-%s.%s" (include "app.ozgcloudBezeichner" .) (include "app.name" .) (include "app.baseUrl" .) }}
 {{- end -}}
 
 {{- define "app.alfaAddress" -}}
diff --git a/src/main/helm/templates/deployment.yaml b/src/main/helm/templates/deployment.yaml
index 8aed2667d831c4ea8f47c61c32cec7e5d7715083..346ee183251aac415d827ba477a6ca4c4a8bb6f1 100644
--- a/src/main/helm/templates/deployment.yaml
+++ b/src/main/helm/templates/deployment.yaml
@@ -100,7 +100,7 @@ spec:
         - name: KEYCLOAK_URL
           value: {{ include "app.ssoServerUrl" . }}
         - name: OZGCLOUD_USER_MANAGER_URL
-          value: {{ include "app.baseUrl" . }}
+          value: https://{{ include "app.baseDomain" . }}
         {{- if ((.Values.ozgcloud).usersync).period }}
         - name: OZGCLOUD_USERSYNC_PERIOD
           value: {{ .Values.ozgcloud.usersync.period }}
diff --git a/src/main/helm/templates/ingress.yaml b/src/main/helm/templates/ingress.yaml
index b10443e90f79d47c91d1724bf1192da9b8e0de8e..4b8a34978263469c5af9925f504703c8a3a92368 100644
--- a/src/main/helm/templates/ingress.yaml
+++ b/src/main/helm/templates/ingress.yaml
@@ -54,10 +54,10 @@ spec:
                 name: {{ include "app.name" . }}
             path: ''
             pathType: ImplementationSpecific
-      host: {{ trimPrefix "https://" ( include "app.baseUrl" . ) }}
+      host: {{ ( include "app.baseDomain" . ) }}
   tls:
     - hosts:
-      - {{ trimPrefix "https://" ( include "app.baseUrl" . ) }}
+      - {{ ( include "app.baseDomain" . ) }}
       {{- if (.Values.ingress).tlsSecretName }}
       secretName: {{ (.Values.ingress).tlsSecretName }}
       {{- else if ne (.Values).cluster_env "dataport" }}
diff --git a/src/test/helm/ingress-nginx-tests.yaml b/src/test/helm/ingress-nginx-tests.yaml
index edc9075e3b0fe0594b5eebb44f4842b4276dc9d0..bd52d6a0ee1595207f54167a1ca605d7138772c3 100644
--- a/src/test/helm/ingress-nginx-tests.yaml
+++ b/src/test/helm/ingress-nginx-tests.yaml
@@ -75,4 +75,16 @@ tests:
     asserts:
       - equal:
           path: metadata.annotations["cert-manager.io/cluster-issuer"]
-          value: letsencrypt-prod
\ No newline at end of file
+          value: letsencrypt-prod
+
+  - it: should create hostname correctly
+    asserts:
+      - equal:
+          path: spec.rules[0].host
+          value: helm-user-manager.test.sh.ozg-cloud.de
+
+  - it: should create tls hosts name correctly
+    asserts:
+      - equal:
+          path: spec.tls[0].hosts[0]
+          value: helm-user-manager.test.sh.ozg-cloud.de
\ No newline at end of file