Fix exception when stored media url is already absolute

(cherry picked from commit 49b3351c72)
This commit is contained in:
Rasmus John Pedersen
2019-07-29 12:59:29 +02:00
committed by Sebastiaan Janssen
parent 4612c03657
commit ca56655d07
2 changed files with 17 additions and 0 deletions

View File

@@ -45,6 +45,10 @@ namespace Umbraco.Web.Routing
if (string.IsNullOrEmpty(path))
return null;
// the stored path is absolute so we just return it as is
if(Uri.IsWellFormedUriString(path, UriKind.Absolute))
return new Uri(path);
Uri uri;
if (current == null)