Drupal 10 lies about access to current url


That’s the method that will return false if you give it a URL object that you have created with the <current> keyword, at least, some of the time / Drupal 10, when in a language checking context anyway.

The reasons why are documented here:

Url access / PathValidator not language/options aware

See our comments there: