michitux / dokuwiki-plugin-move

Move and rename pages and namespaces whilst maintaining the links
http://www.dokuwiki.org/plugin:move
GNU General Public License v2.0
40 stars 20 forks source link

Plugin breaks new ~ syntax for page relative namespace links #234

Open expionage opened 1 year ago

expionage commented 1 year ago

Hi there, thank you for this amazing plugin! I want to take the opportunity to report a bug that has been confirmed by others.

Whenever I move a page or whole sub-namespace (?), I have noticed that the relative namespace removes the "~:" in front of the namespace and it reverts back to ":" -- For example.

In one of the sub-namespaces, I would have:

[[~:example|Example Link]]

And I move a page, it would suddenly be (note the tilde is gone):

[[:example|Example Link]]

The result is that I would have to go back to every page that references the relative link and manually update the link to add back in the "~" tilde to make it relative again to the sub-namespace.

Is there a way to make it so that Links to the relative sub-namespace/folder in a given page are automatically updated after a Move?

annda commented 6 months ago

I suppose that the move should just leave the tilde-prefixed link alone. That would be quite easy to fix.

Or are there any special cases that need to be considered?

splitbrain commented 6 months ago

Well, tilde links need to be rewritten if they pointed to a moved page, or the page they are on was moved.