feature_23113 #4

Merged
francesco.mangiacrapa merged 58 commits from feature_23113 into master 2022-04-06 09:59:06 +02:00
1 changed files with 3 additions and 4 deletions
Showing only changes of commit 5fb758e1d9 - Show all commits

View File

@ -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);