Merge pull request #2180 from anojht/baseurl-themefix

fixing baseurl breaking themes issue #2177
pull/2183/head^2
Jamie 7 years ago committed by GitHub
commit ad41ea2086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -87,8 +87,14 @@ O:::::::OOO:::::::Om::::m m::::m m::::mb:::::bbbbbb::::::bi::::::i
</head>
<body>
@{
if (customization.HasPresetTheme)
{
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>

Loading…
Cancel
Save