Merge pull request #2266 from ProNotion/issues/U4-9401

Fixes  U4-9401 Double slashes in some Umbraco generated urls causes broken links
This commit is contained in:
Shannon Deminick
2017-10-27 14:32:04 +11:00
committed by GitHub

View File

@@ -70,7 +70,7 @@ namespace Umbraco.Web
if (!GlobalSettings.UseDirectoryUrls)
path += ".aspx";
else if (UmbracoConfig.For.UmbracoSettings().RequestHandler.AddTrailingSlash)
path += "/";
path = path.EnsureEndsWith("/");
}
path = ToAbsolute(path);