Create an XML file with name
org.apache.sling.servlets.resolver.SlingServletResolver in config
folder.Add servletresolver.paths property with your custom paths as
Note: If you have already configured this manually in config manager
console, and later trying to configure through cod...
Yes. For SPA entire page content is based on model.json. And
this will called internally from clientlib-react. While rewriting the
URL in dispatcher page will be loaded but the model.json will be of the
page which we are accessing from the browser.
This is what happening. While accessing /abc abc.model.json is getting
called and the content coming under this is getting loaded in page.
After applying rules, still abc.model.json is getting loaded for both
the /page1 and /page2
We are using AEM - React as a SPA.The Rewrite Rules which are configured
for URL shortening were not working with this AEM-React SPA.We have made
some changes in HierarchyPageImpl class so that :path will be specific
to the short URL. And the changes are working fine.But, we have a new
use case wher...