diff --git a/OpenRA.Mods.Common/LoadScreens/BlankLoadScreen.cs b/OpenRA.Mods.Common/LoadScreens/BlankLoadScreen.cs index 37722cd67a..ae01fb60e6 100644 --- a/OpenRA.Mods.Common/LoadScreens/BlankLoadScreen.cs +++ b/OpenRA.Mods.Common/LoadScreens/BlankLoadScreen.cs @@ -61,7 +61,23 @@ namespace OpenRA.Mods.Common.LoadScreens } // Join a server directly - var connect = args != null ? args.GetValue("Launch.Connect", null) : null; + var connect = string.Empty; + if (args != null) + { + if (args.Contains("Launch.Connect")) + connect = args.GetValue("Launch.Connect", null); + + if (args.Contains("Launch.URI")) + { + connect = args.GetValue("Launch.URI", null); + if (connect != null) + { + connect = connect.Replace("openra://", ""); + connect = connect.TrimEnd('/'); + } + } + } + if (!string.IsNullOrEmpty(connect)) { var parts = connect.Split(':');