Fixed the extra slash

pull/4072/head
tidusjar 4 years ago
parent fb59f232e0
commit b90ef2148b

@ -256,7 +256,7 @@ namespace Ombi
} }
var indexHtml = await File.ReadAllTextAsync(indexPath); var indexHtml = await File.ReadAllTextAsync(indexPath);
indexHtml = indexHtml.Replace("<script type='text/javascript'>window[\"baseHref\"] = '/';</script>" indexHtml = indexHtml.Replace("<script type='text/javascript'>window[\"baseHref\"] = '/';</script>"
, $"<script type='text/javascript'>window[\"baseHref\"] = '{baseUrl}';</script><base href=\"{baseUrl}/\">", StringComparison.InvariantCultureIgnoreCase); , $"<script type='text/javascript'>window[\"baseHref\"] = '{baseUrl}';</script><base href=\"{baseUrl}\">", StringComparison.InvariantCultureIgnoreCase);
await File.WriteAllTextAsync(indexPath, indexHtml); await File.WriteAllTextAsync(indexPath, indexHtml);

Loading…
Cancel
Save