From: gmungoc Date: Fri, 18 Sep 2015 12:51:23 +0000 (+0100) Subject: JAL-1859 reinstated full path to file option (for local server) X-Git-Tag: Release_2_10_0~394^2~11 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=f2de0db49813fab66f74848f4ea91746170f7aa3;p=jalview.git JAL-1859 reinstated full path to file option (for local server) --- diff --git a/src/jalview/bin/JalviewLite.java b/src/jalview/bin/JalviewLite.java index 3d59a12..efb77e7 100644 --- a/src/jalview/bin/JalviewLite.java +++ b/src/jalview/bin/JalviewLite.java @@ -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.