Workaround to enable file download for the workbench in a web / workbench mutalized...
[lgpl/argeo-commons.git] / org.argeo.eclipse.ui.rap / src / org / argeo / eclipse / ui / specific / OpenFile.java
index b55521b126d804b07ca2332f2600f9dda9bbae4d..4d293727351a4e983e428660d593db76ebc0cd91 100644 (file)
@@ -71,7 +71,9 @@ public class OpenFile extends AbstractHandler {
                        log.debug("URL : " + downloadUrl);
 
                UrlLauncher launcher = RWT.getClient().getService(UrlLauncher.class);
-               launcher.openURL(downloadUrl);
+               // FIXME: find a way to manage correctly the addition of the base
+               // context for the workbench.
+               launcher.openURL("/ui" + downloadUrl);
 
                // These lines are useless in the current use case but might be
                // necessary with new browsers. Stored here for memo