2012-01-25 02:50:42 +00:00
|
|
|
<%@page contentType="text/plain"%>
|
2004-07-24 02:06:07 +00:00
|
|
|
<%@page pageEncoding="UTF-8"%>
|
2006-02-15 05:33:17 +00:00
|
|
|
<%
|
2012-01-25 02:50:42 +00:00
|
|
|
response.setStatus(302, "Moved");
|
|
|
|
String req = request.getRequestURI();
|
|
|
|
if (req.endsWith("index"))
|
|
|
|
req = req.substring(0, req.length() - 5);
|
|
|
|
else if (req.endsWith("index.jsp"))
|
|
|
|
req = req.substring(0, req.length() - 9);
|
|
|
|
if (!req.endsWith("/"))
|
|
|
|
req += '/';
|
|
|
|
boolean oldHome = net.i2p.I2PAppContext.getGlobalContext().getBooleanProperty("routerconsole.oldHomePage");
|
|
|
|
if (oldHome)
|
|
|
|
req += "console";
|
|
|
|
else
|
|
|
|
req += "home";
|
|
|
|
response.setHeader("Location", req);
|
2006-02-15 05:33:17 +00:00
|
|
|
%>
|