Tapestry
  1. Tapestry
  2. TAPESTRY-1297

incorrect context generated for URLs with final slash

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0.3
    • Component/s: None
    • Labels:
      None

      Description

      When using a URL of the form "http://www.host.com/page/", rather than "http://www.host.com/page" (note the final slash), the context which gets generated and passed on to event handlers like onActivate( ) is an array with a single empty string, rather than an empty array.

      Attaching a small fix, including unit tests.

        Activity

        Hide
        Howard M. Lewis Ship added a comment -

        Thanks for the patch!

        Show
        Howard M. Lewis Ship added a comment - Thanks for the patch!

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Daniel Gredler
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development