Acs commons error page handler not working for AEMaaCS for react SPA project
Hi,
In my react spa based project the ACS commons error page handler not working. I have created my xml file like below:
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="sling:OsgiConfig"
enabled="{Boolean}true"
vanity.dispatch.enabled="{Boolean}true"
serve-authenticated-from-cache="{Boolean}true"
ttl="{Long}300"
error-page.system-path="/content/myProject/en/error/404"
error-page.fallback-name="500"
/>
Path I searched for: http://localhost:4502/content/myProject/siteName/en/xyz.html
(xyz is not from my site)
(xyz is not from my site)
When I search for a page which is not in my site the error page is not getting loaded, then I checked the page on inspect mode, I could see the xyz.model.json is getting 404.
NOTE: This configuration is working fine for other project which is not SPA based.
Thanks.
Thanks.