Drupal 8 CKEditor dynamic internal links plugin? 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:

 &lt;p&gt;&lt;a href="/parent/child/pagename"&gt;test&lt;/a&gt;&lt;/p&gt;


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:

  &lt;p&gt;&lt;a href="$PAGENODEID$"&gt;test&lt;/a&gt;&lt;/p&gt;


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
I'm the maintainer for Linkit module. 

Linkit 8.x-5.x is solving the problem you describe with static URL:s. 

The new version is using data-attributes (UUID and some other values) that calculates the URL in "run time".
That solves the issue. 

Remember to also enable the Linkit filter in your text format configuration.
Also, make sure that the data attributes are added to the HTML filter allowed values if you use that filter.