adobe/aem-project-archetype

Improve error 404/500 handling

Open

#290 aperta il 3 dic 2019

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (430 fork)auto 404
enhancementgood first issue

Metriche repository

Star
 (594 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

The error 404/500 error handling solution provided by the archetype [0] is not very robust and seems difficult to achieve a "pretty" error page. Instead, a Apache ErrorDirective solution [1] gives the flexibility to use actual content pages and is quite easy to set up (once you know the syntax).

While this might not be a complete solution for a multilingual setup (the error code is using the us-en locale for all errors), it seems like a good start and the direction we can move towards.

[0] https://github.com/adobe/aem-project-archetype/tree/master/src/main/archetype/ui.apps/src/main/content/jcr_root/apps/sling/servlet/errorhandler [1] https://github.com/adobe/aem-guides-wknd/pull/61

Guida contributor