Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Ombi/commit/0c6083dd9af91275b0ab88050cd5420b89dffc1c You should set ROOT_URL correctly, otherwise the web may not work correctly.

detect if baseurl is already set, and reset the link

pull/2186/head
Anojh 7 years ago
parent 738bdb46d7
commit 0c6083dd9a

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

Loading…
Cancel
Save