I am trying to render a link from an Url object and beforehand check whether the user actually has access to that url, like a viewing a node.
For some reason, this returns always false:
$_url = Url::fromRoute('<current>', [], ['language' => $language]);
if ($_url->access()) { // always false
}
Although the node for the looked up language is accessible.
How to check if a user may access the given path without actually loading the entity behind that?