mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -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.Settings.Settings.Models
|
||||
@inject ISettingsService<OmbiSettings> Settings
|
||||
@inject ISettingsService<CustomizationSettings> CustomizationSettings
|
||||
@{
|
||||
var s = await Settings.GetSettingsAsync();
|
||||
var customization = await CustomizationSettings.GetSettingsAsync();
|
||||
var baseUrl = s?.BaseUrl ?? string.Empty;
|
||||
|
||||
if (!baseUrl.EndsWith("/"))
|
||||
|
@ -13,13 +15,19 @@
|
|||
{
|
||||
baseUrl = baseUrl.TrimStart('/');
|
||||
}
|
||||
|
||||
var appName = customization.ApplicationName;
|
||||
if(string.IsNullOrEmpty(appName))
|
||||
{
|
||||
appName = "Ombi";
|
||||
}
|
||||
}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Ombi</title>
|
||||
<title>@appName</title>
|
||||
<base href="/@baseUrl"/>
|
||||
<link rel="SHORTCUT ICON" href="~/images/favicon/favicon.ico" />
|
||||
<link rel="icon" href="~/images/favicon/favicon.ico" type="image/ico" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue