When editing a link, the data- attributes will in some situations be kept in the old state.

Steps to reproduce:

  • Add an internal link to an entity (entity:node/1)
  • The data- attributes will be set
  • Edit that link, and set an external URL as href.
  • The data- attributes is the same as before.

This causes the linkit_filter to always override the href.

Expected behavior:

  • Add an internal link to an entity (entity:node/1)
  • The data- attributes will be set
  • Edit that link, and set an external URL as href.
  • The data- attributes removed.

Comments

anon created an issue. See original summary.

  • anon committed cc3edc5 on 8.x-5.x
    Issue #2755403 by anon: Edit link don't remove data- attributes
    
anon’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.