diff --git a/src/Radarr.Http/Middleware/UrlBaseMiddleware.cs b/src/Radarr.Http/Middleware/UrlBaseMiddleware.cs index 091f2aaeb..3f593851f 100644 --- a/src/Radarr.Http/Middleware/UrlBaseMiddleware.cs +++ b/src/Radarr.Http/Middleware/UrlBaseMiddleware.cs @@ -20,6 +20,8 @@ namespace Radarr.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; }