We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3542766 commit 25dc0d4Copy full SHA for 25dc0d4
class/Middleware.cs
@@ -60,6 +60,8 @@ public async Task Invoke(HttpContext context)
60
61
if (execute.FoundPage)
62
await context.Response.WriteAsync(PageResult);
63
+ else if (execute.IsAspxExtension)
64
+ return;
65
else
66
await _next(context);
67
}
@@ -125,7 +127,16 @@ public async Task Invoke(HttpContext context)
125
127
if (execute.FoundController)
126
128
129
- await _next(context);
130
+ {
131
+ string path = context.Request.Path.ToString();
132
+ path = System.Net.WebUtility.UrlDecode(path);
133
+ string extension = Path.GetExtension(path);
134
+
135
+ if (extension == ".aspx")
136
137
+ else
138
+ await _next(context);
139
+ }
140
141
142
0 commit comments