1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Fixed: cache break issue when base url was used

This commit is contained in:
kayone 2014-09-01 14:58:02 -07:00
parent 52da4e4423
commit 5fc7d07c76

View File

@ -78,7 +78,11 @@ private string GetIndexText()
var cacheBreakProvider = _cacheBreakProviderFactory();
_generatedContent = ReplaceRegex.Replace(_generatedContent, match => cacheBreakProvider.AddCacheBreakerToPath(URL_BASE + match.Value));
_generatedContent = ReplaceRegex.Replace(_generatedContent, 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);