Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-1181

Outbound rewrite rules

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.0 RC3
    • Fix Version/s: None
    • Component/s: Old Core
    • Labels:
      None
    • Development Priority:
      Low
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      I propose to extend the URLFactory to support outbound rewrite rules.
      This would allow to have calls to getURL(..) rewrite URLs based on regular expression

      Example

      rule1=/xwiki/bin/view/Main/(.)?id=(.)
      rule1-target=/pages/$1/$2

      would transform

      /xwiki/bin/view/Main/page1?id=123
      into
      /pages/page1/123

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              vmassol Vincent Massol
              Reporter:
              ludovic Ludovic Dubost
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: