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

The highlighting of the 'Home' menu-link does not respect query strings and fragment identifiers

$
0
0

It appears this is not related to the issue as was assumed in (#1 - #11):
PathMatcher::isFrontPage() does not work for the default homepage if it contains a query string.

I have tested this with a small block that displayed the value of PathMatcher::isFrontPage(), but it also appears to affect the menu system (where I first noticed this):

Issue since #12:

  1. Visit the regular front page of your Drupal site: example.com.
  2. Append a query string to the url: example.com?foo=bar.
  3. Notice that the home menu item no longer has the is-active class.

I could only achieve above behavior with the home page (example.com?foo=bar and example.com/node?foo=bar) and all other paths work as expected, so there appears to be something wrong with this default front page path somehow.


Viewing all articles
Browse latest Browse all 294415

Trending Articles



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