Skip to content

Commit 5370b97

Browse files
Fix 404 not found for Webpanels in modules
1 parent 9553d77 commit 5370b97

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dotnet/src/dotnetcore/GxClasses.Web/Middleware/HandlerFactory.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,12 @@ public IHttpHandler GetHandler(HttpContext context, string requestType, string u
134134
GXLogging.Debug(log, "GetHandler url:", url);
135135

136136
IHttpHandler handlerToReturn =null;
137-
138-
int idx = url.LastIndexOf('.');
137+
int idx = -1;
139138
string cname0;
139+
if (url.EndsWith(HttpHelper.ASPX, StringComparison.OrdinalIgnoreCase))
140+
{
141+
idx = url.LastIndexOf('.');
142+
}
140143
if (idx >= 0)
141144
cname0 = url.Substring(0, url.LastIndexOf('.')).ToLower();
142145
else

0 commit comments

Comments
 (0)