Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/src/org/labkey/api/files/view/FilesWebPart.java
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public static URI getRootPath(Container c, @Nullable String davName, @Nullable S
@NotNull
private static URI _getRootPath(Container c, @Nullable URI relativePath, boolean skipDavPrefix)
{
String webdavPrefix = skipDavPrefix ? "" : PageFlowUtil.encodeURIComponent(AppProps.getInstance().getContextPath()) + "/" + PageFlowUtil.encodeURIComponent(WebdavService.getServletPath());
String webdavPrefix = skipDavPrefix ? "" : (AppProps.getInstance().getContextPath() + "/" + PageFlowUtil.encodeURIComponent(WebdavService.getServletPath()));
URI rootPath = URIUtil.toURI(webdavPrefix + c.getEncodedPath());
relativePath = relativePath == null || relativePath.toString().endsWith("/") ?
relativePath :
Expand Down