2 Replies Latest reply on Jun 5, 2013 5:45 AM by Katrien

    Custom 500 error handling - no longer working 5.6

    Katrien Level 1

      OBJECTIVE: I want to redirect visitors to a custom 500 error page in my content structure: /content/site/500

       

      For testing purposes I created a JSP that calls the following code:

      reponse.sendError(500);

       

      I have created the following files:

      /apps/sling/servlet/errorhandler/Throwable.jsp

      /apps/sling/servlet/errorhandler/Exception.jsp

       

      Both of these in fact include

      /apps/sling/servlet/errorhandler/500.jsp

       

      In this 500.jsp - for simplicity - I have the following code:

      response.sendRedirect("/content/site/500.html");

       

      But the redirect never happens. This was working fine in 5.5, but is no longer working in CQ 5.6.

       

      Any help greatly appreciated!