Problem link with anchor

Created on 22 June 2024, 5 months ago
Updated 16 August 2024, 3 months ago

I have drupal 10.2.7 with many anchor links to insert.
When I add the anchor, it is deleted.
For example, if I enter /node/125#anchor, #anchor is deleted.
With drupal 9 I don't have this problem.
How do I solve the problem?

Thanks and best regards

💬 Support request
Status

Closed: duplicate

Version

7.0

Component

Code

Created by

🇮🇹Italy giordy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @giordy
  • 🇺🇸United States byronveale

    We have the same issue, Drupal 10.2.6, Linkit 6.1.4.

    Looks like the only way to create a link to an anchor in a page is to use the text editor’s “Source” button.

  • Status changed to Closed: duplicate 3 months ago
  • 🇺🇸United States mark_fullmer Tucson

    I believe this issue is caused by the steps taken during data entry. As described in Add better support for linking to anchors Postponed: needs info and Add a basic matcher for anchors RTBC , using anchor links is definitely possible, provided you enter them in the format described there.

    I'm going to revisit both of those issues to see if we can make the anchor links work more intuitively. Closing this issue as a duplicate.

  • 🇮🇹Italy giordy

    I created a new site with drupal 11 and the same problem occurred: the anchor is deleted.
    I uninstalled and reinstalled in a different order the CodeMirror, Editor Advanced Link, Linkit modules and the problem was solved. The same on a site with Drupal 10.
    In a third site with d10, I tried everything but when I install Linkit the anchor is deleted.

Production build 0.71.5 2024