Closed devintuffy closed 5 years ago
Oh nooooo
Looking at the response from http://localhost:8080/perapi/admin/nodes.json/content/sites/test%20area/Sample%20Sites/site%202/child%201, I can see that this 'title' value is coming from the server:
Composum confirms this is persisted:
This is happening in the createSite api call:
When creating a new site from a template, we call com.peregrine.admin.resource.AdminResourceHandlerService#copySite, with the new site name as "targetName". This targetName is passed into com.peregrine.admin.resource.AdminResourceHandlerService#copyChildResources, which copies each page and then updates the title -- so in this case, updating every page's title to the same thing.
Luckily, copySite is the only thing that calls copyChildResources, so fixing shouldn't be difficult.
To reproduce:
Result:
While the breadcrumbing shows the "correct" name of the folder or item, the explorer shows the site name for every sub-item in the site: