Hi
Is there a way one can generate a link to directly edit a page in AEM? I need to include this link in an email that I send out from a component.
Solved! Go to Solution.
Views
Replies
Total Likes
You can construct the AEM url in the sling model and use the same while sending email.
1. First get the current page path using Page object.
private Page currentPage;
2. Use Externalizer to get the hostname and the construct complete url ("<hostname>" + "/editor.html/+"<Page path>"+"html"
you can check below example to get hostname info.
Views
Replies
Total Likes
You can construct the AEM url in the sling model and use the same while sending email.
1. First get the current page path using Page object.
private Page currentPage;
2. Use Externalizer to get the hostname and the construct complete url ("<hostname>" + "/editor.html/+"<Page path>"+"html"
you can check below example to get hostname info.
Views
Replies
Total Likes