leafwiki icon indicating copy to clipboard operation
leafwiki copied to clipboard

If page not found/moved, search for matching page titles

Open entorb opened this issue 1 week ago • 1 comments

Problem / use case

If I move a page from root to a directory, e.g. LeafWiki -> Software/LeafWiki

users who bookmarked that page are greeted with

Page Not Found

The page you are looking for does not exist.

workaround: setup Apache redirect rules

Proposed behavior

instead: search for page title

  1. if 1 hit, show that page
  2. if >=2 hits show list
  3. if 0 hits keep as is
  4. (optionally) show close matches

Is this ready to be implemented, or does it need discussion first?

Should be easy to do, shall I prepare a PR?

entorb avatar Nov 22 '26 21:11 entorb

Hi @entorb,

I think this would be a good idea. If you could prepare an PR for that, that would be nice.

perber avatar Nov 30 '26 16:11 perber