How can I get the URL of an entity without its alias?
This code just gives me the path alias, but what I actually want would be, for example, /en/node/1 instead of /en/node/my-title.
$entity->toUrl('canonical', ['absolute' => true, language' => $entity->language()])
->toString(true)
->getGeneratedUrl());