You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by ju...@apache.org on 2023/11/25 14:19:50 UTC

(jspwiki) branch master updated: Update URLConstructor.java

This is an automated email from the ASF dual-hosted git repository.

juanpablo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jspwiki.git


The following commit(s) were added to refs/heads/master by this push:
     new 432361b4d Update URLConstructor.java
432361b4d is described below

commit 432361b4d237db345e0eb43a9124f2870638af4b
Author: udittmer <34...@users.noreply.github.com>
AuthorDate: Fri Nov 24 16:32:28 2023 +0100

    Update URLConstructor.java
    
    The method didn't work for the default URL style, causing PAGE_REQUESTED and PAGE_DELIVERED events to have a null page name.
---
 jspwiki-main/src/main/java/org/apache/wiki/url/URLConstructor.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jspwiki-main/src/main/java/org/apache/wiki/url/URLConstructor.java b/jspwiki-main/src/main/java/org/apache/wiki/url/URLConstructor.java
index 885339472..1e64b5432 100644
--- a/jspwiki-main/src/main/java/org/apache/wiki/url/URLConstructor.java
+++ b/jspwiki-main/src/main/java/org/apache/wiki/url/URLConstructor.java
@@ -77,7 +77,7 @@ public interface URLConstructor extends Initializable {
     static String parsePageFromURL( final HttpServletRequest request, final Charset encoding ) {
         final String name = request.getPathInfo();
         if( name == null || name.length() <= 1 ) {
-            return null;
+            return request.getParameter("page");
         } else if( name.charAt(0) == '/' ) {
             return name.substring(1);
         }