Hello all,
I’m migrating a xwiki server, and I see a difference on links generated by the same code:
$response.sendRedirect($xwiki.getURL($targetDocName, ‘inline’, “template=${request.template}&parent=$escapetool.url(${docParent})&title=$escapetool.url($docName)$!{defaultId}&sessionReview=${request.itemSession}”))
On server with version 6.3 the link was
xwiki/bin/inline/HOME/FORM-RG_LogoML_SC_DOS-809761?template=Code.FormuleRGEditTemplate&parent=HOME.RG_LogoML_SC_DOS&title=FORM%2DRG_LogoML_SC_DOS%2D809761&sessionReview=$%7BitemSession%7D
Now on version 12.10.4 the same code generates the link
xwiki/bin/inline/HOME/FORM-RG_LogoML_SC_DOS-809761?template=Code.FormuleRGEditTemplate&parent=HOME.RG_LogoML_SC_DOS&title=FORM-RG_LogoML_SC_DOS-809761&sessionReview=${itemSession}
This means the url link is not beeing encoded like “-” should be “%2D” and “{” should be “%7B”
Is the function getURL() that changed between versions and I’ve to adapt the code, or is something else ?
Thank for your time