Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/fa26bcde3a7b6c288ae5a528a45f08e64a6a2011 You should set ROOT_URL correctly, otherwise the web may not work correctly.

Remove unnecessary ToString in RobotsRedirectionMiddleware

pull/10331/head
Patrick Barron 2 years ago
parent 1ca9f8b04b
commit fa26bcde3a

@ -33,8 +33,7 @@ public class RobotsRedirectionMiddleware
/// <returns>The async task.</returns>
public async Task Invoke(HttpContext httpContext)
{
var localPath = httpContext.Request.Path.ToString();
if (string.Equals(localPath, "/robots.txt", StringComparison.OrdinalIgnoreCase))
if (httpContext.Request.Path.Equals("/robots.txt", StringComparison.OrdinalIgnoreCase))
{
_logger.LogDebug("Redirecting robots.txt request to web/robots.txt");
httpContext.Response.Redirect("web/robots.txt");

Loading…
Cancel
Save