mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 06:53:07 +03:00
display program data path and bookmark in the dashboard
This commit is contained in:
@@ -306,6 +306,33 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
||||
return;
|
||||
}
|
||||
|
||||
var localPath = context.Request.Url.LocalPath;
|
||||
|
||||
if (string.Equals(localPath, "/mediabrowser/", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
context.Response.Redirect(DefaultRedirectPath);
|
||||
context.Response.Close();
|
||||
return;
|
||||
}
|
||||
if (string.Equals(localPath, "/mediabrowser", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
context.Response.Redirect("mediabrowser/" + DefaultRedirectPath);
|
||||
context.Response.Close();
|
||||
return;
|
||||
}
|
||||
if (string.Equals(localPath, "/", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
context.Response.Redirect("mediabrowser/" + DefaultRedirectPath);
|
||||
context.Response.Close();
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(localPath))
|
||||
{
|
||||
context.Response.Redirect("/mediabrowser/" + DefaultRedirectPath);
|
||||
context.Response.Close();
|
||||
return;
|
||||
}
|
||||
|
||||
RaiseReceiveWebRequest(context);
|
||||
|
||||
await Task.Factory.StartNew(() =>
|
||||
|
||||
Reference in New Issue
Block a user