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

Angular Integration in AEM - Currentpage is not working

sathya_prakasha
Level 5
Level 5

Hi Team,

 

We are currently integrating AEM with angular.

Hitting URL :

http://localhost:4502/content/my-project/us/en/home.html page at which we are including the component(i.e. getting a current page method in sling model) but its returning always en.model.json

Response:

Path: "/content/my-project/us/en.model.json" is the path given by JSON.

Expectation: /content/my-project/us/home.model.json

Is there anything we are missing or any way to get the current page object on JSON file 

Adobe Cloud Manager AEM 6.5.8
1 Reply
asutosh_jena
Community Advisor
Community Advisor

Hi @sathya_prakasha 

 

What is the navigation root you have configured on your component? I believe you must have configured it as "/content/my-project/us/en" which is why your component response is returning as /content/my-project/us/en.model.json and that is expected functionality.

 

Refer the link here for more info:

https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/s...

 

Thanks!