Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-1419

Provide a method to build query strings in Velocity

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 10.4-rc-1
    • Fix Version/s: None
    • Component/s: Velocity
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      It's hard to handle query string in Velocity without having a proper tool. Looking in the code I see a lot of examples like:

      $doc.getURL('edit', "$!{languageparams}#if ($languageparams != '')&#{end}editor=wiki")
      

      There is already a $urltool that could be improved with new methods.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mflorea Marius Dumitru Florea
                Reporter:
                acotiuga Alex Cotiugă
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: