Details
-
Bug
-
Resolution: Fixed
-
Minor
-
5.4.2, 6.1-milestone-1
-
Unknown
-
N/A
-
N/A
-
Description
Steps to reproduce:
- go to Main.WebHome
- add a comment
- right click on the edit button of the new comment, select "open on a new tab"
- look at the URL:
http://localhost:8080/xwiki/bin/view/Main/?viewer=comments&number=0&xredirect=/xwiki/bin/view/Main/?xpage=xpart&vm=commentsinline.vm
The xredirect section is bad.
- Save your comment
- You are redirected to /xwiki/bin/view/Main/?xpage=xpart&vm=commentsinline.vm...
Why?
Because the xredirect parameter is computed in commentsinline.vm which is loaded by an AJAX request.
commentsinline.vm
#set($xredirect = $!escapetool.xml($request.get("xredirect"))) #if("$!xredirect" == '') #set($xredirect = "$doc.getURL('view')?$request.getQueryString()") #end
$request.getQueryString() returns the current ajax query string...
It is a minor problem because usually people edit their comment inline with JavaScript.