final WebRequest request = cycle.getWebRequest();
if (request != null)
{
final String contextPath = request.getContextPath();
buffer.append(contextPath);
<BUG>buffer.append(((WebRequest)request).getServletPath());

}</BUG>
return buffer;
}

final WebRequest request = cycle.getWebRequest();
if (request != null)
{
final String contextPath = request.getContextPath();
buffer.append(contextPath);
String path = ((WebRequest)request).getServletPath();
if(path == null || "".equals(path)) path = "/";
buffer.append(path);
}
return buffer;
}
