diff --git a/src/Plugin/Action/IdentifierAction.php b/src/Plugin/Action/IdentifierAction.php index 3f656a6..05ffb13 100644 --- a/src/Plugin/Action/IdentifierAction.php +++ b/src/Plugin/Action/IdentifierAction.php @@ -125,7 +125,7 @@ public function getIdentifier(): IdentifierInterface { * @throws \Drupal\Core\Entity\Exception\UndefinedLinkTemplateException */ public function getExternalUrl(): string { - return $this->entity->toUrl()->setAbsolute()->toString(TRUE)->getGeneratedUrl(); + return $this->entity->toUrl()->setAbsolute()->setOption('alias', TRUE)->toString(TRUE)->getGeneratedUrl(); } /**