Skip to content

Commit d9d0711

Browse files
ResourceManager skips rendering a resource without an URL (#8876)
1 parent e5e71c7 commit d9d0711

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Orchard/UI/Resources/ResourceManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ private static TagBuilder GetTagBuilder(ResourceDefinition resource, string url)
9797

9898
public static void WriteResource(TextWriter writer, ResourceDefinition resource, string url, string condition, Dictionary<string, string> attributes)
9999
{
100+
if (string.IsNullOrEmpty(url)) return;
101+
100102
if (!string.IsNullOrEmpty(condition))
101103
{
102104
if (condition == NotIE)

0 commit comments

Comments
 (0)