Merge pull request #3510 from markdav-is/patch-4

Update _Host.cshtml.cs to account for fully qualified type names in theme resources
This commit is contained in:
Shaun Walker 2023-11-29 13:21:39 -05:00 committed by GitHub
commit 6e100a70b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -505,7 +505,7 @@ namespace Oqtane.Pages
{
if (resource.Url.StartsWith("~"))
{
resource.Url = resource.Url.Replace("~", "/Themes/" + name + "/").Replace("//", "/");
resource.Url = resource.Url.Replace("~", "/Themes/" + Utilities.GetTypeName(name) + "/").Replace("//", "/");
}
if (!resource.Url.Contains("://") && alias.BaseUrl != "" && !resource.Url.StartsWith(alias.BaseUrl))
{