diff --git a/src/Readarr.Http/Middleware/UrlBaseMiddleware.cs b/src/Readarr.Http/Middleware/UrlBaseMiddleware.cs index ef78a7108..e3572b67f 100644 --- a/src/Readarr.Http/Middleware/UrlBaseMiddleware.cs +++ b/src/Readarr.Http/Middleware/UrlBaseMiddleware.cs @@ -20,6 +20,8 @@ namespace Readarr.Http.Middleware if (_urlBase.IsNotNullOrWhiteSpace() && context.Request.PathBase.Value.IsNullOrWhiteSpace()) { context.Response.Redirect($"{_urlBase}{context.Request.Path}{context.Request.QueryString}"); + context.Response.StatusCode = 307; + return; }