Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
expionage opened this issue Apr 6, 2023 · 2 comments
Open

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

expionage opened this issue Apr 6, 2023 · 2 comments
Labels

Comments

@expionage
Copy link

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?

@splitbrain splitbrain changed the title Relative Link Broken after Moving a Page Plugin breaks new ~ syntax for page relative namespace links Mar 28, 2024
@splitbrain splitbrain added the bug label Mar 28, 2024
@annda
Copy link

annda commented Apr 4, 2024

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants