From 8396075ceac8d841bfe1376a3a17f3779b0615e5 Mon Sep 17 00:00:00 2001 From: DDEV User Date: Mon, 17 Jun 2024 17:00:57 +0000 Subject: [PATCH] Don't let aliased URLs be the identifier's location by default. --- src/Plugin/Action/IdentifierAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } /**