From bb43d81a0e9fa12d7ad83a4666457063d111ec03 Mon Sep 17 00:00:00 2001 From: Alex Janousek Date: Wed, 29 Oct 2025 09:49:44 -0400 Subject: [PATCH] One last tweak --- app/assets/javascripts/templateFolderForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/templateFolderForm.js b/app/assets/javascripts/templateFolderForm.js index 72acd2009..65d4c332d 100644 --- a/app/assets/javascripts/templateFolderForm.js +++ b/app/assets/javascripts/templateFolderForm.js @@ -272,7 +272,7 @@ if (this.currentState === 'add-new-template' && this.singleNotificationChannel) { event.preventDefault(); - window.location = "/services/" + this.singleChannelService + "/templates/add-" + this.singleNotificationChannel; + window.location = "/services/" + encodeURIComponent(this.singleChannelService) + "/templates/add-" + encodeURIComponent(this.singleNotificationChannel); } else if (this.currentState === 'add-new-template') { // Check if a template type is selected const selectedInput = this.form.querySelector('input[name="add_template_by_template_type"]:checked');