From a723029b89df295405632d3735c26c12bb173583 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 5 Nov 2016 17:56:58 +1300 Subject: Handle forward slash in url --- app/src/main/java/org/traccar/manager/MainFragment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/org/traccar/manager/MainFragment.java b/app/src/main/java/org/traccar/manager/MainFragment.java index 40e0808..ea1e345 100644 --- a/app/src/main/java/org/traccar/manager/MainFragment.java +++ b/app/src/main/java/org/traccar/manager/MainFragment.java @@ -62,6 +62,9 @@ public class MainFragment extends WebViewFragment { String url = PreferenceManager.getDefaultSharedPreferences( getActivity()).getString(MainActivity.PREFERENCE_URL, null); + if (url.endsWith("/")) { + url = url.substring(0, url.length() - 1); + } serverUri = Uri.parse(url); getWebView().loadUrl(url); -- cgit v1.2.3