mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
basepath: add support for /jackett base path redirection
This commit is contained in:
@@ -77,12 +77,12 @@ namespace Jackett.Services
|
||||
{
|
||||
if (config.BasePathOverride == null || config.BasePathOverride == "")
|
||||
{
|
||||
return "/";
|
||||
return "";
|
||||
}
|
||||
var path = config.BasePathOverride;
|
||||
if (!path.EndsWith("/"))
|
||||
if (path.EndsWith("/"))
|
||||
{
|
||||
path = path + "/";
|
||||
path = path.TrimEnd('/');
|
||||
}
|
||||
if (!path.StartsWith("/"))
|
||||
{
|
||||
|
Reference in New Issue
Block a user