basepath: add support for /jackett base path redirection

This commit is contained in:
kaso17
2018-01-23 20:40:37 +01:00
parent d578f585b3
commit 4fef4f872e
2 changed files with 5 additions and 5 deletions

View File

@@ -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("/"))
{