Skip to content

Commit e30b841

Browse files
committed
Don't redirect to a string
1 parent 39f5eed commit e30b841

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

flow/src/org/labkey/flow/controllers/FlowController.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
import org.labkey.api.util.FileUtil;
4747
import org.labkey.api.util.JobRunner;
4848
import org.labkey.api.util.TestContext;
49+
import org.labkey.api.util.URLHelper;
4950
import org.labkey.api.view.ActionURL;
5051
import org.labkey.api.view.HttpView;
5152
import org.labkey.api.view.JspView;
@@ -72,8 +73,6 @@
7273
import org.springframework.validation.Errors;
7374
import org.springframework.web.servlet.ModelAndView;
7475

75-
import java.net.URI;
76-
7776
@Marshal(Marshaller.Jackson)
7877
public class FlowController extends BaseFlowController
7978
{
@@ -367,8 +366,8 @@ public class SavePreferencesAction extends SimpleViewAction<Object>
367366
public ModelAndView getView(Object o, BindException errors) throws Exception
368367
{
369368
FlowPreference.update(getRequest());
370-
URI uri = new URI(getRequest().getContextPath() + "/_.gif");
371-
return HttpView.redirect(uri.toString());
369+
URLHelper url = new URLHelper(getRequest().getContextPath() + "/_.gif");
370+
return HttpView.redirect(url, false);
372371
}
373372

374373
@Override

0 commit comments

Comments
 (0)