Fix exception when stored media url is already absolute
(cherry picked from commit 49b3351c72)
This commit is contained in:
committed by
Sebastiaan Janssen
parent
4612c03657
commit
ca56655d07
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user