Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Linkit dialog sometimes returns '#' for the link text instead of the content title. I haven't figured out what triggers it (see attached GIF).
Comment | File | Size | Author |
---|---|---|---|
linkit.gif | 149.04 KB | drupalninja99 |
Comments
Comment #2
drupalninja99 CreditAttribution: drupalninja99 commentedNow I am seeing this console error
Comment #3
drupalninja99 CreditAttribution: drupalninja99 at Mediacurrent commentedI think the above error is actually when you try to insert a link with empty results.
Comment #4
anonI don't know about the error, but Linkit is inserting # as a placeholder for the href attribute.
Linkit is adding some data attributes to the
<a>
tag and is then "calculating" the href in run-time using the data attributes.I didn't know what to do with the href, so I put it to # all the time as the link plugin needs a href attribute in order to add links.
This is currently being under re-work with #2844466: Insert external link on form submit.
I will close this issue as a duplicate. Please feel free to reopen it again if applicable.
Comment #5
anonThe default behaviour is that the if no text is selected, the href will be used as the content.
There is also another issue for this: please see #2827151: Insert node title instead of # when no link text is selected