Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
9.15.9
-
None
-
Unknown
-
Description
Steps to reproduce:
1. Go to xwiki/bin/view/Blog/Management and create a new Blog (e.g. MyBlog).
2. The blog is created as a child page of the Home page (url: xwiki/bin/view/MyBlog).
3. Move the blog to a new location as a subpage of another page, (e.g. TestPage.MyBlog).
4. Navigate to the new blog location: TestPage.MyBlog.
5. Use the Blog macro on that page to create a new Blog Post, e.g. NewBlog.
Expected Result:
The new Blog Post is created as a child page at the new location: TestPage.MyBlog.NewPost.
Actual Result:
The new Blog Post is created as a child page at the old location: MyBlog.NewPost.
When navigating to "NewPost" page, and clicking on its parent page (MyBlog), the parent page appears to be removed from this location: "The requested page could not be found. You can edit this page to create it." message. The parent page exists at its new location, but the child pages created after the move are anchored to the old location.
In short, the parent page of NewPost is correctly displayed as MyBlog, however the child pages are placed under the MyBlog page at its original creation location, even though the page no longer exists there. The issue seems to be that the Blog macro retains the original location of the Blog page instead of updating its current location after it has been moved.