mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
Fixed #1622
This commit is contained in:
parent
d59be43ca1
commit
e722d9991f
1 changed files with 9 additions and 1 deletions
|
@ -1,8 +1,10 @@
|
||||||
@using Ombi.Core.Settings
|
@using Ombi.Core.Settings
|
||||||
@using Ombi.Settings.Settings.Models
|
@using Ombi.Settings.Settings.Models
|
||||||
@inject ISettingsService<OmbiSettings> Settings
|
@inject ISettingsService<OmbiSettings> Settings
|
||||||
|
@inject ISettingsService<CustomizationSettings> CustomizationSettings
|
||||||
@{
|
@{
|
||||||
var s = await Settings.GetSettingsAsync();
|
var s = await Settings.GetSettingsAsync();
|
||||||
|
var customization = await CustomizationSettings.GetSettingsAsync();
|
||||||
var baseUrl = s?.BaseUrl ?? string.Empty;
|
var baseUrl = s?.BaseUrl ?? string.Empty;
|
||||||
|
|
||||||
if (!baseUrl.EndsWith("/"))
|
if (!baseUrl.EndsWith("/"))
|
||||||
|
@ -13,13 +15,19 @@
|
||||||
{
|
{
|
||||||
baseUrl = baseUrl.TrimStart('/');
|
baseUrl = baseUrl.TrimStart('/');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var appName = customization.ApplicationName;
|
||||||
|
if(string.IsNullOrEmpty(appName))
|
||||||
|
{
|
||||||
|
appName = "Ombi";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Ombi</title>
|
<title>@appName</title>
|
||||||
<base href="/@baseUrl"/>
|
<base href="/@baseUrl"/>
|
||||||
<link rel="SHORTCUT ICON" href="~/images/favicon/favicon.ico" />
|
<link rel="SHORTCUT ICON" href="~/images/favicon/favicon.ico" />
|
||||||
<link rel="icon" href="~/images/favicon/favicon.ico" type="image/ico" />
|
<link rel="icon" href="~/images/favicon/favicon.ico" type="image/ico" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue