adobe/aem-project-archetype

Improve error 404/500 handling

Open

#290 geöffnet am 3. Dez. 2019

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (430 Forks)auto 404
enhancementgood first issue

Repository-Metriken

Stars
 (594 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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

Contributor Guide