Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/commit/c925c0bb2425b6f61b04e311716161fed6fd539a
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
7 additions and
5 deletions
@ -74,19 +74,21 @@ namespace NzbDrone.Api.Frontend.Mappers
return _generatedContent ;
}
_generatedConten t = _diskProvider . ReadAllText ( _indexPath ) ;
var tex t = _diskProvider . ReadAllText ( _indexPath ) ;
var cacheBreakProvider = _cacheBreakProviderFactory ( ) ;
_generatedContent = ReplaceRegex . Replace ( _generatedConten t, match = >
text = ReplaceRegex . Replace ( tex t, match = >
{
var url = cacheBreakProvider . AddCacheBreakerToPath ( match . Value ) ;
return URL_BASE + url ;
} ) ;
_generatedContent = _generatedContent . Replace ( "API_ROOT" , URL_BASE + "/api" ) ;
_generatedContent = _generatedContent . Replace ( "API_KEY" , API_KEY ) ;
_generatedContent = _generatedContent . Replace ( "APP_VERSION" , BuildInfo . Version . ToString ( ) ) ;
text = text . Replace ( "API_ROOT" , URL_BASE + "/api" ) ;
text = text . Replace ( "API_KEY" , API_KEY ) ;
text = text . Replace ( "APP_VERSION" , BuildInfo . Version . ToString ( ) ) ;
_generatedContent = text ;
return _generatedContent ;
}