Closed locnguyenx closed 7 years ago
This was an issue in the WikiServices.xml file in moqui-framework in the normalized pagePath code which set it based on the pageName even if it was the root page in a space (which it shouldn't). That is fixed in commit #4b9c5d9 in moqui-framework.
Problem 1:
Open an existing wiki spage:
http://localhost:8080/apps/hm/wiki/DEMO
currently, the root page of this wiki has contentchoose Edit Page for the root page the EditWikiPage screen opened with url:
http://localhost:8080/apps/hm/EditWikiPage?wikiSpaceId=DEMO&pagePath=DEMO
Issue: this screen shows empty page
If I fill content and save, system creates new page DEMO under the root (has path wiki/DEMO/DEMO)
Problem 2:
Open EditWikiPage directly with url:
http://localhost:8080/apps/hm/EditWikiPage?wikiSpaceId=DEMO
it will shows the exact content of the Root Page of DEMO wikiSave this page, system creates update content to page DEMO under the root (has path wiki/DEMO/DEMO)
The issue may be because of parameter
pagePath
returned from serviceorg.moqui.impl.WikiServices.get#WikiPageInfo
. As I remembered correctly, when opening a wiki root page, the pagePath must be empty.