5 charcter stripped from media name wrongly assumed it is "/edit"

Created on 17 May 2023, over 1 year ago
Updated 9 May 2024, 6 months ago

Media names which are less than 5 character is not returning path in autocomplete api call

the comment on https://www.drupal.org/project/linkit/issues/3063393#comment-13403068 β†’ by @f2boot is still relevant at 6.1.x

can not blindly strip 5 charcter assume it was "/edit" but it needs to check before strip.

Steps to reproduce

Upload a media which name is less than 5 character and in a text editor add a link to that media. you will see the path is false returned from autocomplete url. then can not select by mouse in drop down.

Proposed resolution

the patch is perfectly check if the /edit is in text delete it not just blindly cut 5 character.

πŸ› Bug report
Status

Active

Version

7.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia b.ravanbakhsh Adelaide

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

Comments & Activities

Production build 0.71.5 2024