This problems should apply to all kinds of structures but i will describe our case here:
We have a website with a blog section. It has several pages in the root level (one of them is the blog) and the posts are created as children of the blog page.
Some of the blog posts have PDF files (or other media) attached to them and they are linked in the markdown content of the post. The link looks like this for example: https://domain.org/user/pages/09.blog/175.post-name/file.pdf
Now it happens that we want to add a new page which should appear before the blog in the menu, so we sort the page to have the right numeric prefix. But that means the URL to the PDF file is now https://domain.org/user/pages/10.blog/175.post-name/file.pdf
Therefore the link in the markdown content of this page is broken because it is not being updated automatically when saving the new page.
Are we doing something wrong? Is there a way to prevent this or auto update such links?
Thanks!