Tapestry
  1. Tapestry
  2. TAPESTRY-1502

Generated URLs should be relative to request base URL

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0.8
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      When Tapestry generates a URL to render a page, invoke an action, or download an asset, it always builds a complete path, i.e., "/context/foo/bar". In many cases, the links from the current rendered page (which establishes a base URL) to other resources would be shorter and more readable if relative. This if you are rendering page "users/edit" (i.e. at URL "/context/users/edit") and submit a form, the URI would be "edit.form" not "/context/users/edit.form").

        Activity

        Hide
        Howard M. Lewis Ship added a comment -

        Came out great, though the full benefit isn't visible unless you are using a context path (other than root) and perhaps a lot of libraries or page activation contexts.

        Show
        Howard M. Lewis Ship added a comment - Came out great, though the full benefit isn't visible unless you are using a context path (other than root) and perhaps a lot of libraries or page activation contexts.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development