Repository navigation
Create a page from a missing URL does not preserve that URL and can create the page elsewhere #8262
Environment
DescriptionWhen opening a URL for a page that does not exist, Wiki.js displays the requested path and offers a Create a page button. Clicking this button should start creating the page at that exact address. However, the save workflow does not preserve the requested URL and instead proposes a different path derived from the page title. The original URL can therefore remain missing even after the user has followed its creation workflow and successfully saved a page. Steps to reproduce
In my initial attempt, the page was saved at the site root under a title-derived path, rather than at the requested nested address. The title-derived path behavior is still reproducible in 3.3.1. Expected behaviorStarting creation from: should create the page at: The title may be completely different from the URL. Setting or changing the title must not silently change the requested destination. The locale, parent path and final path segment should all be retained. If intermediate folders do not exist, the workflow should handle that explicitly while preserving the requested destination. Actual behavior and impactThe workflow behaves like a generic “create a new page somewhere” operation, despite being initiated through a button offering to create a specific missing page. This can cause:
|
Replies: 4 comments
|
I traced this in the 3.3.1 source and it's a bug in the Save As dialog, not in the missing-page button. The button does pass the right path. It calls The dialog loses it. On open it sets the title and then the path name in the same tick (TreeBrowserDialog.vue). The title watcher runs right after and, because the path field hasn't been touched yet, overwrites the path name with a slug of the title (watcher). So The folder comes from the tree. The dialog only opens on Workaround until it's fixed: in Save As, select the |
|
Would the Wiki.js maintainers welcome a focused fix and PR, to avoid duplicating work? |
In v2, when I wanted to create a new page from its path, I navigate to this path, then click on the create button and it create the page at the location. Even if the directory doesn't exist. It was very practical for quickly redact documentations as I can create links in an article, then click on it and create the related page directly without worry about the path. Cant't it be the same in v3 ? |
Fixed via 7d44406. Will land in next release.