Roting in AEM +React | Community
Skip to main content
Level 2
August 14, 2020
Solved

Roting in AEM +React

  • August 14, 2020
  • 2 replies
  • 851 views

Hi,

I have created the same List component as per Adobe help guide. When I clicked any of the child page link , url get changed but the content of the page not get refresh. Still showing the existing page content.

 

url: https://helpx.adobe.com/in/experience-manager/kt/sites/using/getting-started-spa-wknd-tutorial-develop/react/chapter-3.html

 

Thanks,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Nikhil-Kumar

Hey,

Can you verify the :children property in the Network section in en.model.json  (Or whichever locale/language).
As in SPA the data is rendered from the root JSON. I suspect this JSON might be missing. 
The en page should use the Root page template and it's childpages should use other content page template to have en.model.json loaded in all the pages.

If above things are available try checking the routing part from React side.

2 replies

Vijayalakshmi_S
Level 10
August 14, 2020

Hi @amreenkhan,

I will try this out in my local and update. Meanwhile, can you try to use the finished code package provided in the tutorial directly and observe the behavior. 

Nikhil-Kumar
Community Advisor
Nikhil-KumarCommunity AdvisorAccepted solution
Community Advisor
August 15, 2020

Hey,

Can you verify the :children property in the Network section in en.model.json  (Or whichever locale/language).
As in SPA the data is rendered from the root JSON. I suspect this JSON might be missing. 
The en page should use the Root page template and it's childpages should use other content page template to have en.model.json loaded in all the pages.

If above things are available try checking the routing part from React side.