Problem/Motivation
For headless cases when we use the module. We can have a item that isn't a link, it could be a item with only children. Drupal already manage this case in menus and theme. This mean, we create a menu item an we set for Link the value route:<nolink>
It could be useful when is exported this kind of element without none of those attributes:
- URI
- Alias
- Absolute
- Relative
Proposed resolution
Add a validation to check if value in link is nolink if this is true, remove URI, Alias, Absolute and Relative elements.
User interface changes
It could be added a check box in the configuration to enable this behaviour
Comments
Comment #2
cgomezgThere we are with first patch
Comment #3
cgomezgI found a issue for external links. I patched
Comment #5
fabianderijkThanks, I've took the code from your patch, and placed it in another place, and cleaned it up a bit. It has been added to the dev release.