diff --git a/chart/files/index.html b/chart/files/index.html
index bb8c6bb8b81e56181b59c2b5156fad0e653e564e..b74ad39fceb75c740a2aa076b90b5afaf62a7c37 100644
--- a/chart/files/index.html
+++ b/chart/files/index.html
@@ -216,7 +216,7 @@ var config = {
             "search": {
                 "protocol": "OpenSearch",
                 "url": baseUrl + "opensearch/collections/{{ $layer_id }}/",
-                "id": {{ $layer_id }},
+                "id": {{ $layer_id | quote }},
                 "histogramBinCount": 28,
                 "format": "application/atom+xml",
                 "method": "GET",