From 41554091d1c48284dfa46115601b3d2aab6d0383 Mon Sep 17 00:00:00 2001 From: Jordan Dukart Date: Tue, 25 May 2021 11:18:44 -0300 Subject: [PATCH] Make handle use the parent. --- modules/dgi_actions_handle/src/Plugin/Action/MintHandle.php | 2 +- src/Plugin/Action/IdentifierAction.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/dgi_actions_handle/src/Plugin/Action/MintHandle.php b/modules/dgi_actions_handle/src/Plugin/Action/MintHandle.php index a681ee5..0995fdd 100644 --- a/modules/dgi_actions_handle/src/Plugin/Action/MintHandle.php +++ b/modules/dgi_actions_handle/src/Plugin/Action/MintHandle.php @@ -84,7 +84,7 @@ protected function getRequestParams(): array { [ 'index' => 1, 'type' => 'URL', - 'data' => $this->entity->toUrl()->setAbsolute()->toString(TRUE)->getGeneratedUrl(), + 'data' => $this->getExternalUrl(), ], ], 'query' => [ diff --git a/src/Plugin/Action/IdentifierAction.php b/src/Plugin/Action/IdentifierAction.php index 743ec10..eafa4be 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('canonical', ['absolute' => TRUE])->toString(TRUE)->getGeneratedUrl(); + return $this->entity->toUrl()->setAbsolute()->toString(TRUE)->getGeneratedUrl(); } /**