Replies

Highlighted

Avatar

Avatar

pradeepn6086740

Avatar

pradeepn6086740

pradeepn6086740

16-10-2018

Hi All,

If anyone looking for a fix for this. Please update "loadPath:" function in your "/libs/cq/ui/widgets/source/widgets/wcm/SiteAdmin.js" with the below code by overlaying this js.

var admin = this;

if (!isRecCall) {

  admin.isFirstLoad = true;

}

var callback = function(success, node, selectRecord) {

   if (Boolean(admin.isFirstLoad)) {

   if (success) {

  admin.isFirstLoad = false;

   this.loadPages(node, selectRecord);

  node.expand();

  } else {

   // path not found => load parent
   this.loadPath(

   this.treePath.substring(0, this.treePath.lastIndexOf("/")),

   this.treePath,

   true);

  }

  }

};

Thanks,

Pradeep

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

16-10-2018

Excellent post - thank you!