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:
commit
6e100a70b9
|
@ -505,7 +505,7 @@ namespace Oqtane.Pages
|
||||||
{
|
{
|
||||||
if (resource.Url.StartsWith("~"))
|
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))
|
if (!resource.Url.Contains("://") && alias.BaseUrl != "" && !resource.Url.StartsWith(alias.BaseUrl))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user