From 9158ea1ace8d958a11dd94dccaf13f0d05532059 Mon Sep 17 00:00:00 2001 From: Shannon Date: Fri, 20 Jun 2014 14:45:45 +1000 Subject: [PATCH] fixes url returned in GetCurrentServerUmbracoBaseUrl --- src/Umbraco.Core/Sync/ServerEnvironmentHelper.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Core/Sync/ServerEnvironmentHelper.cs b/src/Umbraco.Core/Sync/ServerEnvironmentHelper.cs index c5363b494f..73dca4cc98 100644 --- a/src/Umbraco.Core/Sync/ServerEnvironmentHelper.cs +++ b/src/Umbraco.Core/Sync/ServerEnvironmentHelper.cs @@ -25,7 +25,7 @@ namespace Umbraco.Core.Sync if (status == CurrentServerEnvironmentStatus.Single) { //if it's a single install, then the base url has to be the first url registered - return ApplicationContext.Current.OriginalRequestUrl; + return string.Format("http://{0}", ApplicationContext.Current.OriginalRequestUrl); } var servers = UmbracoSettings.DistributionServers; @@ -34,7 +34,7 @@ namespace Umbraco.Core.Sync if (nodes == null) { //cannot be determined, then the base url has to be the first url registered - return ApplicationContext.Current.OriginalRequestUrl; + return string.Format("http://{0}", ApplicationContext.Current.OriginalRequestUrl); } var xmlNodes = nodes.Cast().ToList(); @@ -62,7 +62,7 @@ namespace Umbraco.Core.Sync } //cannot be determined, then the base url has to be the first url registered - return ApplicationContext.Current.OriginalRequestUrl; + return string.Format("http://{0}", ApplicationContext.Current.OriginalRequestUrl); } ///