Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3004

Using RedirectPolicy.NEVER_REDIRECT when redirecting to a page will break URLs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 1.5-M2.1
    • wicket
    • None

    Description

      When using RedirectPolicy.NEVER_REDIRECT the WebPageRenderer uses the URL of the _target_ page instead of the current URL. This is wrong as the target page URL will never be visible in the address bar of the browser as no redirect will happen.

      In consequence all references to the page (scripts, images, etc) are potentially broken, at least when the source and target url have different segment sizes. In this case the number of '../' for creating relative URL's will be wrong and the links are broken.

      patch is attached.

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            pete Peter Ertl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: