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

cgomezg created an issue. See original summary.

cgomezg’s picture

StatusFileSize
new938 bytes

There we are with first patch

cgomezg’s picture

StatusFileSize
new1.01 KB

I found a issue for external links. I patched

  • fabianderijk committed 80b329c on 8.x-2.x authored by cgomezg
    Issue #3020340 by cgomezg: Remove URI Alias Absolute Relative when item...
fabianderijk’s picture

Status: Active » Fixed

Thanks, 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.