mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 09:12: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
|
@ -87,8 +87,14 @@ O:::::::OOO:::::::Om::::m m::::m m::::mb:::::bbbbbb::::::bi::::::i
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<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>
|
<style>
|
||||||
@Html.Raw(customization.PresetThemeContent)
|
@Html.Raw(customization.PresetThemeContent)
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue