fix #5988 - add inline script support to static rendering

This commit is contained in:
sbwalker
2026-01-30 09:00:58 -05:00
parent 81f4f87493
commit 7ab1184a04
7 changed files with 27 additions and 51 deletions

View File

@@ -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("//", "/");
}