Hi all,
following situration:
There is a page
user/pages/01.topic/01.subtopic1/default.md
which is linked on several other pages. Now you move this page to
user/pages/02.anothertopic/01.subtopic1/default.md
all links set to this page will be broken, correct?
How do you avoid this problem?
Is there a plugin (I did not find one) to move pages including link correction automatically?
Otherwise a way to solve this issue could be a plugin in which you define a string like "subtopic1" (representing the foldername and therefor at least a part of the link) and crawl all folders and md-files to create a list with all hits. This would be your todo list to check and adapt the links manually. In a more advanced version you should be able to initiate a script which opens all affected md-files to automatically change urls.
I know one can run into other problems, e.g. if the moved subpage has the same name like another one in a different folder structure like
user/pages/01.topic/01.subtopic1/default.md
user/pages/03.importanttopic/01.subtopic1/default.md
A search for "subtopic1" would also list all md-files containing a link to user/pages/03.importanttopic/01.subtopic1/default.md although you do not need that.
Any ideas or suggestions? I don't think that I am the first one thinking about this... (sorry, did not find a matching discussion in this forum).
Thank you and greetings,
Markus