fix #5988 - add inline script support to static rendering
This commit is contained in:
@@ -329,7 +329,7 @@ namespace Oqtane.Repository
|
||||
{
|
||||
foreach (var resource in theme.Resources)
|
||||
{
|
||||
if (resource.Url.StartsWith("~"))
|
||||
if (!string.IsNullOrEmpty(resource.Url) && resource.Url.StartsWith("~"))
|
||||
{
|
||||
resource.Url = resource.Url.Replace("~", "/Themes/" + Utilities.GetTypeName(theme.ThemeName) + "/").Replace("//", "/");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user