#35 - Make IBN path configurable

This commit is contained in:
Luke Pulverenti
2013-04-23 15:17:21 -04:00
parent 0e7ad811ac
commit 4390e2f710
9 changed files with 147 additions and 56 deletions

View File

@@ -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>