Details
-
Improvement
-
Resolution: Unresolved
-
High
-
1.8.0
-
Operating System: Debian 8
PHP Version: 5.6.14-0+deb8u1
Database and version: Mysql 5.5.46-0+deb8u1
Browser (and version): Firefox 50
Env: Prod
Description
If we create an internal link in a richtext field, pointing to a location that is later removed, the internal link is still present when we edit the object again. It would be nice to have these "dead" links automatically cleaned
Steps to reproduce
-Create one article1
-Create folder "Folder1" and in rich text field, create a link to "article1"
-remove article1
-View "Folder1" - ok, the link is not present
-Edit "Folder1"
-We can see that the link reference to deleted "article1" is still present. If we try to publish it again without doing anything else, we have the notification error "An error occurred while publishing the draft" and the response with
{"ErrorMessage":{"_media-type":"application\/vnd.ez.api.ErrorMessage+json","errorCode":404,"errorMessage":"Not Found","errorDescription":"Could not find 'location' with identifier '54'"}}
Attachments
Issue Links
- discovered while testing
-
EZP-26899 Handle internal links when displaying RichText fields
- Closed