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:
- Visit the regular front page of your Drupal site:
example.com
. - Append a query string to the url:
example.com?foo=bar
. - 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.