mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 01:02:57 -07:00
Merge pull request #2180 from anojht/baseurl-themefix
fixing baseurl breaking themes issue #2177
This commit is contained in:
commit
ad41ea2086
1 changed files with 8 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue