Problem/Motivation
When attempting to save a node with the "Create new menu link" box checked, get the following error message
Drupal\Core\Entity\EntityStorageException: The entity URI 'entity:node/' is invalid. You must specify the entity id in the URL. e.g., entity:node/1 for loading the canonical path to node entity with id 1. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 861 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
Steps to reproduce
Save a node with the "create new menu link" box checked.
Proposed resolution
Look into a fix, maybe something in here is related Add support for Quick Node Clone module
.
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Unique_alias1.png | 93.88 KB | tushar1 |
| #5 | Unique_alias.png | 106.07 KB | tushar1 |
| #3 | 3608401.patch | 858 bytes | shank115 |
Issue fork unique_alias_checker-3608401
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mdranove commentedComment #3
shank115 commentedTry this patch.
Comment #4
shank115 commentedComment #5
tushar1 commentedTested on Drupal 11.4 with Unique Alias Checker 1.5.0. I enabled the module, configured menu settings, and tested both creating and editing nodes with "Provide a menu link" enabled. I was unable to reproduce the reported EntityStorageException. Additional reproduction steps or environmental details may be needed to verify the fix.
Comment #6
mdranove commentedRepro steps