Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294472

Links with no path get active class on front page

$
0
0

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:

  1. The links are generated with "data-drupal-link-system-path=<front>"
  2. 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.


Viewing all articles
Browse latest Browse all 294472

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>