Skip to content

Commit d005ee6

Browse files
Issue 52917: File Browser doesn't load with non-root context path (#6602)
1 parent f7b35b8 commit d005ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/org/labkey/api/files/view/FilesWebPart.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ public static URI getRootPath(Container c, @Nullable String davName, @Nullable S
401401
@NotNull
402402
private static URI _getRootPath(Container c, @Nullable URI relativePath, boolean skipDavPrefix)
403403
{
404-
String webdavPrefix = skipDavPrefix ? "" : PageFlowUtil.encodeURIComponent(AppProps.getInstance().getContextPath()) + "/" + PageFlowUtil.encodeURIComponent(WebdavService.getServletPath());
404+
String webdavPrefix = skipDavPrefix ? "" : (AppProps.getInstance().getContextPath() + "/" + PageFlowUtil.encodeURIComponent(WebdavService.getServletPath()));
405405
URI rootPath = URIUtil.toURI(webdavPrefix + c.getEncodedPath());
406406
relativePath = relativePath == null || relativePath.toString().endsWith("/") ?
407407
relativePath :

0 commit comments

Comments
 (0)