From: Jim Procter Date: Fri, 27 Feb 2015 16:58:45 +0000 (+0000) Subject: fix for JAL-1678 X-Git-Tag: Jalview_2_9~87^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=20f9fe1f87d1be90a55fedd79b57f927d826bee6;p=jalview.git fix for JAL-1678 --- diff --git a/src/jalview/appletgui/AlignFrame.java b/src/jalview/appletgui/AlignFrame.java index 1f32da0..e84c335 100644 --- a/src/jalview/appletgui/AlignFrame.java +++ b/src/jalview/appletgui/AlignFrame.java @@ -1280,7 +1280,11 @@ public class AlignFrame extends EmbmenuFrame implements ActionListener, { StringBuffer url = new StringBuffer(jalviewServletURL); - url.append("?open=" + // allow servlet parameters to be passed in applet parameter + String firstSep = url.indexOf("?") > url.indexOf("/") ? "&" : "?"; + url.append(firstSep); + + url.append("open=" + appendProtocol(viewport.applet.getParameter("file"))); if (viewport.applet.getParameter("features") != null)