From 7fa9b9c925056aa7a6500a74eb71b383b90e89df Mon Sep 17 00:00:00 2001 From: Simon Heather <32168619+X-Guardian@users.noreply.github.com> Date: Sun, 11 Jun 2023 15:01:08 +0100 Subject: [PATCH] fix: Remove the 'Plan Discarded' Message from the Enable/Disable Apply Commands (#3511) * Remove `/?discard=true` * Restore forward slash --- server/controllers/templates/web_templates.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/controllers/templates/web_templates.go b/server/controllers/templates/web_templates.go index 5fe9515ab..32e3a7f69 100644 --- a/server/controllers/templates/web_templates.go +++ b/server/controllers/templates/web_templates.go @@ -168,7 +168,7 @@ var IndexTemplate = template.Must(template.New("index.html.tmpl").Parse(` url: '{{ .CleanedBasePath }}/apply/lock', type: 'POST', success: function(result) { - window.location.replace("{{ .CleanedBasePath }}/?discard=true"); + window.location.replace("{{ .CleanedBasePath }}/"); } }); }); @@ -185,7 +185,7 @@ var IndexTemplate = template.Must(template.New("index.html.tmpl").Parse(` url: '{{ .CleanedBasePath }}/apply/unlock', type: 'DELETE', success: function(result) { - window.location.replace("{{ .CleanedBasePath }}/?discard=true"); + window.location.replace("{{ .CleanedBasePath }}/"); } }); });