In Drupal 8 CKEditor WYSIWYG editor when I create a link to an internal page I use this URL path which I type manually: /parent/child/pagename
I then found a few buttons that can be added to the CKEditor interface that allow you to search for existing pages and it autoatically creates these paths.
e.g. These seem to be the best options:
https://www.drupal.org/project/ckeditor_entity_link
https://www.drupal.org/project/linkit
The problem I have is that it inserts the link into the HTML like so which is static:
<p><a href="/parent/child/pagename">test</a></p>
When I then change that page name or location to someting else the link breaks.
What I'm looking for is a plugin that inserts dynamic links, similar to this concept using that the page node ID or whatever uniquie identifier Drupal uses never changes:
<p><a href="$PAGENODEID$">test</a></p>
so no matter what the page name/path/url is it will always link to the same page.
I know there is the option of setting up page redirects for old URL alias though without going into detail why that is not a solution for me in my case please leave that suggestion aside I already know of that. :)
Thank you