Skip to content
Snippets Groups Projects
Commit 00dfb2e8 authored by buczekp's avatar buczekp
Browse files

[LMS-1415] moved decoding url parameters out of ViewLocator to fix nojs tests...

[LMS-1415] moved decoding url parameters out of ViewLocator to fix nojs tests removing JS dependency

SVN: 15004
parent 88fe682e
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@ import com.extjs.gxt.ui.client.mvc.Controller;
import com.extjs.gxt.ui.client.mvc.Dispatcher;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.http.client.URL;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import ch.systemsx.cisd.openbis.generic.client.web.client.IClientServiceAsync;
......@@ -143,7 +144,7 @@ public class Client implements EntryPoint
initializeControllers(openUrlController);
}
final ViewLocator locator = new ViewLocator(GWTUtils.getParamString());
final ViewLocator locator = new ViewLocator(URL.decodeComponent(GWTUtils.getParamString()));
final IClientServiceAsync service = getServiceForRetrievingApplicationInfo(viewContext);
service.getApplicationInfo(new AbstractAsyncCallback<ApplicationInfo>(viewContext)
......
......@@ -20,8 +20,6 @@ import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import com.google.gwt.http.client.URL;
import ch.systemsx.cisd.openbis.generic.shared.basic.PermlinkUtilities;
/**
......@@ -120,7 +118,7 @@ public class ViewLocator
{
assert urlParams != null;
final String[] params = URL.decodeComponent(urlParams).split(PARAMETER_SEPARATOR);
final String[] params = urlParams.split(PARAMETER_SEPARATOR);
for (int i = 0; i < params.length; i++)
{
final String[] paramPair = params[i].split(KEY_VALUE_SEPARATOR);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment