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 059c338 commit ab6fc17Copy full SHA for ab6fc17
java/src/main/java/com/genexus/internet/HttpRequestWeb.java
@@ -18,13 +18,13 @@ public HttpRequestWeb(HttpContextWeb httpContext)
18
{
19
super(httpContext);
20
}
21
-
22
- public String getScriptName()
23
- {
+
+ public String getScriptName() {
24
if (httpContext.getRequest() != null) {
25
- String servletPath = httpContext.getRequest().getServletPath();
26
- if (servletPath != null)
27
- return servletPath.substring(servletPath.lastIndexOf("/") +1 , servletPath.length());
+ String requestURI = httpContext.getRequest().getRequestURI();
+ if (requestURI != null) {
+ return requestURI.substring(requestURI.lastIndexOf("/") + 1);
+ }
28
29
return "";
30
0 commit comments