utilize ResourceLocation consistently

This commit is contained in:
sbwalker
2023-05-23 08:08:16 -04:00
parent 20c7bf3c48
commit 7b0799a6f6
3 changed files with 6 additions and 6 deletions

View File

@ -40,7 +40,7 @@ namespace Oqtane.Themes
if (!string.IsNullOrEmpty(resource.Url))
{
var url = (resource.Url.Contains("://")) ? resource.Url : PageState.Alias.BaseUrl + resource.Url;
scripts.Add(new { href = url, bundle = resource.Bundle ?? "", integrity = resource.Integrity ?? "", crossorigin = resource.CrossOrigin ?? "", es6module = resource.ES6Module });
scripts.Add(new { href = url, bundle = resource.Bundle ?? "", integrity = resource.Integrity ?? "", crossorigin = resource.CrossOrigin ?? "", es6module = resource.ES6Module, location = resource.Location.ToString().ToLower() });
}
else
{