Since #2693725: Add <nolink> to allow for non-link links it's possible to create <nolink>
urls, that render in a span. This can be done through the menu system by creating a menu item with a link route:<nolink>
.
However, if set_active_class
is set to TRUE, Drupal will consider this link as going to the front page (as the link is to an empty string ""
). This means two things:
- The links are generated with
"data-drupal-link-system-path=<front>"
- The links are generated with
class="is-active"
when on the homepage.
What is the expected behaviour? Nolinks should not contain either data-drupal-link-system-path
or is-active
on any page.