Content lock not correctly checking for valid link template

Created on 25 August 2020, over 4 years ago
Updated 27 March 2024, about 1 year ago

Problem/Motivation

When content-lock enabbled for paragraphs and edit a paragraph with paragraphs_edit module than on saving the paragraphs-edit form there is an error:
No link template 'canonical' found for the 'paragraph' entity type

Steps to reproduce

enable content-lock for paragraphs
enable paragraphs_edit module
edit a paragraph from paragraphs_edit module by link in single view (will open separate form for editing that specific paragraph )
save the paragrap
changes do get saved but with an error "No link template 'canonical' found for the 'paragraph' entity type"

Proposed resolution

putting a condition on content_lock_form_submit to redirect to url only if canonical url is there

other modules with same error : eg - https://www.drupal.org/project/html_field_formatter/issues/3008915

🐛 Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

🇮🇳India shubhangi1995 GURGAON

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024