diff --git a/apps/routerconsole/jsp/graph.jsp b/apps/routerconsole/jsp/graph.jsp index 1d5c5bf1f..ec42f78d5 100644 --- a/apps/routerconsole/jsp/graph.jsp +++ b/apps/routerconsole/jsp/graph.jsp @@ -16,6 +16,17 @@ <%@include file="summaryajax.jsi" %>
<%@include file="summary.jsi" %> +<% + // needs to be after the summary bar is rendered, so + // that the restart button is processed + String stat = request.getParameter("stat"); + if (stat == null) { + // probably because restart or shutdown was clicked + response.setStatus(302); + response.setHeader("Location", "/graphs"); + return; + } +%>