feature_23113 #4
|
@ -56,10 +56,9 @@ public class UriResolverDocs {
|
|||
pathInfo += "index.html";
|
||||
|
||||
ServletContext context = req.getServletContext();
|
||||
//String realPath = context.getRealPath(pathInfo);
|
||||
UriBuilder builder = UriBuilder.fromPath(context.getContextPath());
|
||||
pathInfo=pathInfo.startsWith("/")?pathInfo:"/"+pathInfo;
|
||||
builder.path(pathInfo);
|
||||
String realPath = context.getRealPath(pathInfo);
|
||||
UriBuilder builder = UriBuilder.fromPath(realPath);
|
||||
// builder.path(pathInfo);
|
||||
|
||||
URI redirectTo = builder.build();
|
||||
logger.info("redirecting to {}", redirectTo);
|
||||
|
|
Loading…
Reference in New Issue