Don't redirect for gameAssets either

This commit is contained in:
Slendy 2022-09-20 15:56:42 -05:00
parent 972faeea84
commit 83a905c8a2
No known key found for this signature in database
GPG key ID: 7288D68361B91428

View file

@ -19,7 +19,7 @@ public class UserRequiredRedirectMiddleware : MiddlewareDBContext
}
// Request ends with a path (e.g. /css/style.css)
if (!string.IsNullOrEmpty(Path.GetExtension(ctx.Request.Path)))
if (!string.IsNullOrEmpty(Path.GetExtension(ctx.Request.Path)) || ctx.Request.Path.StartsWithSegments("/gameAssets"))
{
await this.next(ctx);
return;