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.
Steps to recreate:
- Create an external link using linkit, tinymce button, with an anchor, e.g. http://example.org/path#anchor
- Click insert and select the link again, and click the linkit button again.
- Don't change anything, instead, click insert again.
- Now you have two anchors, like http://example.org/path#anchor#anchor
I haven't got the time right now to make a patch, but i will review this later.
Comment | File | Size | Author |
---|---|---|---|
#3 | 1044606-3.patch | 3.32 KB | anon |
#1 | linkit.1044606.patch | 2.26 KB | anon |
Comments
Comment #1
anonHere is a patch for all editors.
Checks if the "source" url is having an #.
If thats the case, ignore the text in the anchor input.
Comment #2
anonBTW, This is also an issue all type or URLs, internal and external.
Comment #3
anonPushed to 7.x.1.x with this patch