Update _Host.cshtml.cs
Noticed some spaces showing up in theme resources and tracked it down to this line. Wrapping the name in a call to Utilities.GetTypeName cleared things up.
This commit is contained in:
parent
73941ca30e
commit
cc12c302e3
|
@ -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