Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
While generating Preview of a node that has Menu Structure setting in it, this Setting is permanently stored via "token_node_menu_link_submit" and further $entity->save();. Proposing escaping of this while ::preview is within $form_state->getSubmitHandlers(). Patch will follow.
Comment | File | Size | Author |
---|---|---|---|
#3 | token-2897972-fix-menu-link-save.patch | 676 bytes | flefle |
|
Comments
Comment #2
flefle CreditAttribution: flefle as a volunteer commentedComment #3
flefle CreditAttribution: flefle as a volunteer commentedComment #4
BerdirComment #5
BerdirThere is an existing issue for this, see #2823731: Node preview button generates useless menu link. Feel free to propose your implementation there, but still needs tests. We have existing tests for the menu link functionality, it should be possible to extend them.