Pathfield issue in AEM6.1 | Community
Skip to main content
arnab26
New Participant
April 25, 2016
Solved

Pathfield issue in AEM6.1

  • April 25, 2016
  • 1 reply
  • 591 views

Hi All,

I am facing below issue. Can someone help please?

I am having a component with pathfield. I am renaming some node using move option in siteadmin. The pathfield is not updating the links with the new name.

For ex: I had previously /content/site/en/page.html in siteadmin and in path field of a component dialog this link referred.

Now I renamed it to /content/site/en1/page.html in siteadmin. When I open the component dialog, the pathfield still shows the path as /content/site/en/page.html and not /content/site/en1/page.html

 

Thank you

Arnab

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 Tuhin_Ghosh

Hi Arnab,

By default it wont get changed for already authored components.

Please fire a jcr query and get the number of pages that are still pointing to the old url. Then iterate through all those pages from java code and using JCR api change the JCR Property and update with the correct paths.

P.S : If the total number of affected places that are needed to updated is less than 20 then manual approach is OK, otherwise follow automation and do it through the code.

Thanks and Regards

Tuhin Ghosh

1 reply

Tuhin_Ghosh
Tuhin_GhoshAccepted solution
New Participant
April 27, 2016

Hi Arnab,

By default it wont get changed for already authored components.

Please fire a jcr query and get the number of pages that are still pointing to the old url. Then iterate through all those pages from java code and using JCR api change the JCR Property and update with the correct paths.

P.S : If the total number of affected places that are needed to updated is less than 20 then manual approach is OK, otherwise follow automation and do it through the code.

Thanks and Regards

Tuhin Ghosh