Wiki.js

Restoring Wiki.js 2.x capability of opening the editor pre-filled from an existing page via URL

Hi Wiki.js team! I'm a big fan of Wiki.js and really grateful for all your work. I've been testing a migration of our 2.x instance to 3.4.0, and it's going smoothly. We're planning to make it the cen…

Hi Wiki.js team!

I'm a big fan of Wiki.js and really grateful for all your work.

I've been testing a migration of our 2.x instance to 3.4.0, and it's going smoothly. We're planning to make it the central documentation platform for our developer teams.

I have one suggestion. Wiki.js 2.x could open the editor for a new page, pre-filled with the content of an existing page, using only a URL:

/e/<locale>/<path>?from=<pageId>

As far as I can tell, this is no longer possible in 3.x.

### How we use it

We use this to keep our documentation in step with our issue tracker. Each new issue automatically gets a link like this:

/e/en/docs/feature-notes/PROJ-123?from=242

Clicking it opens the editor at the right path, already filled with our feature-note template (page ID 242). Writers start from a consistent structure without copying anything by hand.

### What I found in 3.4.0

### Suggestion

In the /_create route handler, when a from query parameter (a page ID) is present, call pageDuplicate({ sourcePageId: from, path, locale }) instead of pageCreate({ editor, path, locale }):

/_create/<editor>?path=docs/feature-notes/proj-123&locale=en&from=<pageId>

Since pageDuplicate already does the work, I'd expect the change to be small and limited to the route handler.

### Our workaround for now

A Code Injection script detects <path>?from=<pageId> on a page that doesn't exist yet and calls pageDuplicate itself. It works, but it relies on internal store names and could break with any upgrade. Built-in support would let us remove it.

Would you consider adding this? It would mean a lot to us.

Thank you so much for Wiki.js 3!