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

Add ability to get a relative representation of a PageReference to another one

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • 13.10
    • Model
    • Unknown

    Description

      The goal is similar to what Path#relativize does in Java. It is about constructing a string from two PageReferences P1 and P2 so that the constructed string would represent a relative path from a serialized representation of P1 to a serialization representation of P2.

      For example if P1 is wiki:Sandbox/A/B and P2 is wiki:Sandbox/A/D/E, the constructed string would be ../D/E. It could be implemented using the existing Java Path API with some minor changes, in particular when dealing with ../ and ./ representations which should be .. and . instead.

      Attachments

        Activity

          People

            Unassigned Unassigned
            slauriere slauriere
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: