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

header contributions fail on <error-pages>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0-beta1
    • 1.3.0-beta2
    • wicket
    • None

    Description

      if have the following in web.xml:

      <error-page>
      <error-code>404</error-code>
      <location>/404</location>
      </error-page>

      when I type in some intentionally stupid url like:

      http://localhost/myapp/non-existent-page

      the error page will properly show up...

      however, the header contributions contain wrong paths, e.g.:

      <wicket:link>
      <link rel="stylesheet" type="text/css" href="BasePage.css"></link>
      </wicket:link>

      will result in:

      <link href="404/resources/mysite.pages.BasePage/BasePage_de.css" rel="stylesheet" type="text/css"></link>

      however, this is wrong (path contains a "404/" ) as it should be:

      <link href="resources/mysite.pages.BasePage/BasePage_de.css" rel="stylesheet" type="text/css"></link>

      so, on error pages, resources are not usable because the error page path is appended at the beginning...

      Attachments

        Activity

          People

            almaw Alastair Maw
            pete Peter Ertl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: