How to get home page in sling model
Hi,
I have a component which I am including in base page body.
In sling model of the component, how can I get if the current page is Home page or not.
Thanks
Hi,
I have a component which I am including in base page body.
In sling model of the component, how can I get if the current page is Home page or not.
Thanks
Hi @hptarora,
Can you check once for Context aware configuration available in your application ?
if yes you can take help from context aware config to get the homepage if there is one for the same, if not then you can easily add one for homepage path.
this is very normal implementation in almost all multilingual application.
Hope this will help.
Umesh Thakur
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.