We recognize this as a bug and we plan to have this fixed in the upcomming R2 SP2 release.
Me and one of our developers have looked at this and we are not able to reproduce this scenario. We suspect that there is something going on in the pageprovider implementation that delivers PageReferences.
Hmmm.... Well logically the only conceptual interaction with the tree menu you have in the pageprovider is the base.ConstructPageReference(int) in the PageProviderBase, right?
We are using X3 as well - maybe they plugin into the treemenu and change something?
Have to check on the internals of if and how X3 interacts with tree menu.
The GetChildrenReferences implementation of the page provider is another place where I guess things can go wrong (if you for instance don't call back to ConstructPageRereference where the RemoteSite property is set correctly for the PageReference). If there is nothing obvious to find in the implementation, developer support might be able to help you out by looking at your configuration.
Did you ever find a solution to this? I'm experiencing the exact same issue with pageIds not being set correctly in the "Create" dialog...
I'm trying to make a custom PageProvider with Create-capabilities. When i rightclick->create on my EntryPoint everything turns out fine - the edit-page is loaded. But if I right click->create on one of my dynamically created pages and i get the error below, since the url following path is called: /ui/Edit/EditPanel.aspx?parent=3&type=96&mode=
Page 3 was not found
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: EPiServer.Core.PageNotFoundException: Page 3 was not found
I found out, that if i change the url, manually to /ui/Edit/EditPanel.aspx?parent=3__mycomplexpageid&type=96&mode=
It works. So it seems like EPiServer is forgetting to pass on the complex pagelink of the pageprovider to edit-mode.... Is it a bug or am I overlooking something?