diff --git a/shiny-server/templates/_helpers.tpl b/shiny-server/templates/_helpers.tpl
index 3413fdd94a2564f02c1a488090005510ab68fb0a..0c2ceecbfedf851c7c9694022f6cf56264d2a001 100644
--- a/shiny-server/templates/_helpers.tpl
+++ b/shiny-server/templates/_helpers.tpl
@@ -51,5 +51,5 @@ app.kubernetes.io/instance: {{ .Release.Name }}
 {{- end }}
 
 {{- define "chart.hostnameCleaned" -}}
-{{- .Values.ingress.hostname | replace "_" "-" | replace "--" "-" | quote }}
+{{- .Values.ingress.hostname | replace "_" "-" | replace "--" "-" }}
 {{- end }}
\ No newline at end of file
diff --git a/shiny-server/templates/ingress.yaml b/shiny-server/templates/ingress.yaml
index d1391c275ed45dd2919c9238b84ab5e1fee080b8..8f3cbb1151c8c2eb4d5f987b878fc55da4d77a48 100644
--- a/shiny-server/templates/ingress.yaml
+++ b/shiny-server/templates/ingress.yaml
@@ -8,7 +8,7 @@ metadata:
 spec:
   ingressClassName:  {{ .Values.ingress.className | quote }}
   rules:
-  - host: {{ include "chart.hostnameCleaned" . }}
+  - host: {{ include "chart.hostnameCleaned" . | quote }}
     http:
       paths:
       - path: /