I have written Dispatcher rewrite to shorten the URL. Urls are being shortened but the page is not rendering anything it is appearing blank.
Model JSON is loading fine on both Publish and Dispatcher content is exactly the same. Screenshot is attached below
On Publish env
What shall I do now? I am confused
Can you check https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-spa-react-dispatcher-s... for dispatcher setup with AEM SPA project.
Also, check AEM and dispatcher logs to see any error.
Yes, I check that solution out. My model json and the path are the same as well as there are no errors on the Dispatcher log.
For frontend changes, I followed https://experiencing150.rssing.com/chan-25971229/article453.html
I don’t see .html file extension fir the dispatcher url. Can you check with .html extension for dispatcher url as well or you have setup on dispatcher to work as extension less url?
So when you request page from dispatcher does the request going to aem publisher and if not then you might need to check the dispatcher rules for shortened url
How can I verify that?
My Dispatcher code
That means your dispatcher is not configured correctly. You need to debug on the dispatcher by setting the dispatcher log as debug and check what happens with the request
Is the request going as full path to publisher from dispatcher after you rewrite in dispatcher?. It seems publisher could not process shorten url. We can enable shorten url using JcrResourceResolverFactoryImpl. Please check the below article.
How can I verify that request is going to publish. Currently, I just have a dispatcher which is handling everything.