Skip to content
Snippets Groups Projects
Commit 8a6cbf07 authored by srosse's avatar srosse
Browse files

OO-2656: write the context path in the url of the WebDAV link

parent 54d438bc
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@ import org.olat.core.commons.modules.bc.meta.MetaInfoFactory;
import org.olat.core.commons.modules.bc.vfs.OlatRootFolderImpl;
import org.olat.core.helpers.Settings;
import org.olat.core.manager.BasicManager;
import org.olat.core.util.WebappHelper;
import org.olat.core.util.vfs.OlatRelPathImpl;
import org.olat.core.util.vfs.VFSItem;
import org.olat.core.util.vfs.VFSLeaf;
......@@ -53,14 +54,14 @@ public class FolderManager extends BasicManager {
*/
public static String getWebDAVHttp() {
if(Settings.isInsecurePortAvailable()) {
return Settings.getInsecureServerContextPathURI() + "/webdav";
return Settings.getInsecureServerContextPathURI() + WebappHelper.getServletContextPath() + "/webdav";
}
return null;
}
public static String getWebDAVHttps() {
if(Settings.isSecurePortAvailable()) {
return Settings.getSecureServerContextPathURI() + "/webdav";
return Settings.getSecureServerContextPathURI() + WebappHelper.getServletContextPath() + "/webdav";
}
return null;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment