Merge branch 'develop' into Release_2_9_0b1_Branch
[jalview.git] / src / jalview / bin / JalviewLite.java
index 64cf283..4f5c4ee 100644 (file)
@@ -2860,6 +2860,15 @@ public class JalviewLite extends Applet implements
           URL localref)
   {
     String resolvedPath = "";
+    if (targetPath.startsWith("/"))
+    {
+      String codebase = localref.toString();
+      String localfile = localref.getFile();
+      resolvedPath = codebase.substring(0,
+              codebase.length() - localfile.length())
+              + targetPath;
+      return resolvedPath;
+    }
 
     /*
      * get URL path and strip off any trailing file e.g.