When a abc page is not found, then apache internally makes the request to 404-error-page.html(based on error directive), and I see a request for abc.model.json and en.model.json in the network tab, but I don’t see the request for 404-error-page.model.json (because html redirect is made internally by Apache). Due to which page is showing blank.
Apache Error directive configuration
ErrorDocument 404 /content/en/us/error/404-error-page.html
Solved! Go to Solution.
Views
Replies
Total Likes
@iamnjain It appears, @Leela-Pavan-Kumar is also referring the same documentation and noticing an issue Re: AEM SPA Error Page Handler - Adobe Experience League Community - 444452
May be you both can help each other. Please do share with us your final approach. Would be good to know. Thanks !
Hi,
Since the request for 404-error-page.model.json is not being made, it could be possible that the model for the 404 error page is not being initialized properly.
One possible solution is to explicitly initialize the model for the 404 error page in the 404-error-page.html file. You can do this by including a script tag in the HTML file that initializes the model for the page.
The same issue we are facing.
Can you please explain with an example sample code snippet?
That will help.
Any help here @aanchal-sikka @Tanika02 @arunpatidar
@kautuk_sahniAny help here, please.
Hello @iamnjain
requesting you to please refer to: AEM Spa editor - Error Page handling (aemfrontend.blogspot.com)
It seems to be supported on AEMaaCS
Saying based on this comment on https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/2869
@iamnjain It appears, @Leela-Pavan-Kumar is also referring the same documentation and noticing an issue Re: AEM SPA Error Page Handler - Adobe Experience League Community - 444452
May be you both can help each other. Please do share with us your final approach. Would be good to know. Thanks !
Sure, thanks @aanchal-sikka
Is there any other way to do error page handling in AEM SPA project?
Views
Likes
Replies