profile.path Property | Community
Skip to main content
Level 4
July 26, 2016
Solved

profile.path Property

  • July 26, 2016
  • 2 replies
  • 574 views

I'm trying to create an 'edit profile' page within AEM. Based on the Geometrixx Outdoors example, I'm creating a link to this page where the link is in a similar format to this:

${profile.path}.form.html/content/(some path)/profile.html

This isn't working for me as the ${profile.path} property doesn't return anything in the target URL. Where does the ${profile.path} property get set?

I'm using 6.1 if that helps.

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 alistairp781078

I found the answer - for those who may come across the same issue, the code is in the 'Account Item' component in the 'General' component group:

... if (link.contains("${profile.path}")) { final UserProperties userProperties = slingRequest.getResourceResolver().adaptTo(UserProperties.class); link = link.replace("${profile.path}", userProperties.getNode().getPath()); } ...

2 replies

alistairp781078AuthorAccepted solution
Level 4
July 27, 2016

I found the answer - for those who may come across the same issue, the code is in the 'Account Item' component in the 'General' component group:

... if (link.contains("${profile.path}")) { final UserProperties userProperties = slingRequest.getResourceResolver().adaptTo(UserProperties.class); link = link.replace("${profile.path}", userProperties.getNode().getPath()); } ...
kautuk_sahni
Community Manager
Community Manager
July 27, 2016

Thank you for sharing the answer.

~kautuk

Kautuk Sahni