Update namespace queries when renaming the page they draw from

Well, technically, you’re assigning the namespace to the page whose name matches ParentPage, so changing the page name doesn’t match the condition.

Therefore, the condition should refer to another attribute that is independent of the page name and uniquely identifies it. That is, the ID of the block it is a child of. Isn’t it?