Fix URL handling for connection with Edge Server (util: LoginServlet)