Merge pull request #2180 from anojht/baseurl-themefix

fixing baseurl breaking themes issue #2177
This commit is contained in:
Jamie 2018-04-21 19:52:01 +01:00 committed by GitHub
commit ad41ea2086
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,6 +89,12 @@ O:::::::OOO:::::::Om::::m m::::m m::::mb:::::bbbbbb::::::bi::::::i
@{
if (customization.HasPresetTheme)
{
if (!string.IsNullOrEmpty(baseUrl))
{
var index = customization.PresetThemeContent.IndexOf("/api/");
customization.PresetThemeContent = customization.PresetThemeContent.Insert(index, "/" + baseUrl);
}
<style>
@Html.Raw(customization.PresetThemeContent)
</style>