package com.zulip.android.util;

import com.zulip.android.ZulipApp;

public class UrlHelper {

    public static String addHost(String url) {
        if (!url.startsWith("http")) {
            url = ZulipApp.get().getServerHostUri() + url;
        }

       return url;
    }
}

@@ -186,17 +186,28 @@
         
-u
+String hostU
 rl = Zul
@@ -240,15 +240,194 @@
 ri()
- + url;
+;%0A            if (hostUrl.endsWith(%22/%22)) %7B%0A                url = hostUrl.substring(0, hostUrl.length() - 1) + url;%0A            %7D else %7B%0A                url = hostUrl + url;%0A            %7D
 %0A   

Remove extra / from host uri in UrlHelper.addHost