Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2033

Optimized requests paths are broken for root paths within contexts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.8
    • 5.0.8
    • None
    • None

    Description

      TAPESTRY-1502 changed the way that URLs were generated. The comments on the issue indicate it works great for a non-root context, but my experience is indicating otherwise. It is possible I've done something wrong, but without changing a single line of code, all of my pagelinks, actionlinks, includescripts, includestylesheets, and so forth have broken.

      In this case, I have my app mapped to the "/manager" context. I access it locally via http://localhost:8080/manager/.

      The generated URLs are all of the form:

      <script src="manager/assets/scriptaculous/prototype.js" type="text/javascript"></script>

      As you can see, the context is being included in the path but done so relatively. The above would resolve to http://localhost:8080/manager/manager/assets/scriptaculous/prototype.js, which is incorrect. It should be http://localhost:8080/manager/assets/scriptaculous/prototype.js

      Attachments

        1. TAPESTRY-2033.patch
          0.7 kB
          Kevin Menard

        Activity

          People

            hlship Howard Lewis Ship
            nirvdrum Kevin Menard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: