mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-02 22:08:27 +01:00
#35 - Make IBN path configurable
This commit is contained in:
@@ -222,34 +222,9 @@ namespace MediaBrowser.ServerApplication
|
||||
var url = "http://localhost:" + configurationManager.Configuration.HttpServerPortNumber + "/" +
|
||||
Kernel.Instance.WebApplicationName + "/dashboard/" + page;
|
||||
|
||||
if (loggedInUser != null)
|
||||
{
|
||||
url = AddAutoLoginToDashboardUrl(url, loggedInUser);
|
||||
}
|
||||
|
||||
OpenUrl(url);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds the auto login to dashboard URL.
|
||||
/// </summary>
|
||||
/// <param name="url">The URL.</param>
|
||||
/// <param name="user">The user.</param>
|
||||
/// <returns>System.String.</returns>
|
||||
public static string AddAutoLoginToDashboardUrl(string url, User user)
|
||||
{
|
||||
if (url.IndexOf('?') == -1)
|
||||
{
|
||||
url += "?u=" + user.Id;
|
||||
}
|
||||
else
|
||||
{
|
||||
url += "&u=" + user.Id;
|
||||
}
|
||||
|
||||
return url;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Opens the URL.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user