Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-4390

Ecommerce Error Page Does Not Work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Done
    • None
    • None
    • ecommerce
    • None

    Description

      If you are using the ecommerce app and you force it to generate a 404 error page it redirects back to /control/main.
      You can test the 404 error out here - http://demo-trunk.ofbiz.apache.org/ecommerce/please-give-me-an-error/
      This default behaviour will confuse search engines as they expect to get a 404 error if a pages does not exist on a website.

      As pointed out by Bilgin on the mailing list adding the following code into web.xml should resolve the problem however it just generates more errors due to the redirect to /control/main is in place.
      <error-page>
      <error-code>404</error-code>
      <location>/error/error.jsp</location>
      </error-page>

      Attachments

        1. OFBIZ-4390.patch
          15 kB
          Sam Hamilton
        2. OFBIZ-4390-error.txt
          15 kB
          Sam Hamilton

        Activity

          People

            jleroux Jacques Le Roux
            samhamilton Sam Hamilton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: