diff --git a/activemq-web-console/src/main/webapp/message.jsp b/activemq-web-console/src/main/webapp/message.jsp index 262dc5e6889..132d596d685 100644 --- a/activemq-web-console/src/main/webapp/message.jsp +++ b/activemq-web-console/src/main/webapp/message.jsp @@ -234,9 +234,17 @@ function confirmAction(id, action) { return; } var value = select.options[selectedIndex].value; - var url = action + ".action?destination=" + value; - url += "&JMSDestination=${requestContext.messageQuery.JMSDestination}"; - url += "&messageId=${row.JMSMessageID}&JMSDestinationType=queue&secret=${sessionScope['secret']}"; + var url = action + ".action?destination=" + encodeURIComponent(value); + + var url = action + + " + + + + + "; + url = url + "&destination=" + encodeURIComponent(value); + if (confirm("Are you sure?")) location.href=url; }