Skip to content
Snippets Groups Projects
Commit 4d29ee8b authored by srosse's avatar srosse
Browse files

OO-1352: don't forget the context path if needed

parent 8602bcc4
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,7 @@ import org.olat.core.gui.components.form.flexible.impl.elements.richText.RichTex
import org.olat.core.gui.control.Controller;
import org.olat.core.gui.control.Event;
import org.olat.core.gui.control.WindowControl;
import org.olat.core.helpers.Settings;
import org.springframework.beans.factory.annotation.Autowired;
/**
......@@ -102,7 +103,8 @@ public class InfoMsgForm extends FormBasicController {
// add style buttons to make alert style available
richTextConfig.setContentCSSFromTheme(getWindowControl().getWindowBackOffice().getWindow().getGuiTheme());
richTextConfig.enableStyleSelection();
richTextConfig.setLinkBrowserAbsolutFilePath("/raw/static/");
String path = Settings.getServerContextPath() + "/raw/static/";
richTextConfig.setLinkBrowserAbsolutFilePath(path);
FormLayoutContainer buttonGroupLayout = FormLayoutContainer.createButtonLayout("buttonGroupLayout", getTranslator());
formLayout.add(buttonGroupLayout);
......
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