diff --git a/apps/routerconsole/jsp/graph.jsp b/apps/routerconsole/jsp/graph.jsp index 1d5c5bf1f54988784750cd70ab4293a70521fc08..ec42f78d50f3b2b03613f58d5923fc0bebe71538 100644 --- a/apps/routerconsole/jsp/graph.jsp +++ b/apps/routerconsole/jsp/graph.jsp @@ -16,6 +16,17 @@ <%@include file="summaryajax.jsi" %> </head><body onload="initAjax()"> <%@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; + } +%> <h1><%=intl._t("I2P Performance Graphs")%></h1> <div class="main" id="main"> <div class="graphspanel">