From 20f9fe1f87d1be90a55fedd79b57f927d826bee6 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 27 Feb 2015 16:58:45 +0000 Subject: [PATCH] fix for JAL-1678 --- src/jalview/appletgui/AlignFrame.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- 1.7.10.2