Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

AEM-React state refresh issue

priyadarshinic9
Level 2
Level 2

Hi,

Can any one advise, how to go about and solve the below issue.

This is a AEM - React integration project.

The scenario for the issue is when we refresh the link(localhost:4503/testing/map) it gives 404 error as  its a state .

Is there any way to get this working 

4 Replies
Jitendra_S_Toma
Level 9
Level 9

Does it load correctly first time and fails on reloading same URL?. 

priyadarshinic9395328 wrote...

Hi,

Can any one advise, how to go about and solve the below issue.

This is a AEM - React integration project.

The scenario for the issue is when we refresh the link(localhost:4503/testing/map) it gives 404 error as  its a state .

Is there any way to get this working 

 

priyadarshinic9
Level 2
Level 2

Yes it loads correctly the first time, but when we refresh as the state is lost it gives 404 error

Jitendra_S_Toma
Level 9
Level 9

Does this link MAP to any OSGI servlet?. Because it seems there is a conflict between sling default servlet & your servlet. 

Does below node structure exist in your repository?

localhot:4502/testing/map.

priyadarshinic9395328 wrote...

Yes it loads correctly the first time, but when we refresh as the state is lost it gives 404 error

 

priyadarshinic9
Level 2
Level 2

Here "testing/map" is a state from React-js terminology . This is a Single page application .

when this state is reached;  from react-js, sling servlet is invoked to serve the request.