dokuwiki-plugin-move icon indicating copy to clipboard operation
dokuwiki-plugin-move copied to clipboard

Plugin breaks new ~ syntax for page relative namespace links

Open expionage opened this issue 2 years ago • 2 comments

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?

expionage avatar Apr 06 '23 05:04 expionage

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?

annda avatar Apr 04 '24 14:04 annda

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

splitbrain avatar Apr 04 '24 15:04 splitbrain