aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/org/traccar/manager/MainFragment.java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/org/traccar/manager/MainFragment.java')
-rw-r--r--app/src/main/java/org/traccar/manager/MainFragment.java3
1 files changed, 3 insertions, 0 deletions
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);