From f2de0db49813fab66f74848f4ea91746170f7aa3 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 18 Sep 2015 13:51:23 +0100 Subject: [PATCH] JAL-1859 reinstated full path to file option (for local server) --- src/jalview/bin/JalviewLite.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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. -- 1.7.10.2