Skip to content

Commit

Permalink
Merge pull request #20 from jordandukart/8.x
Browse files Browse the repository at this point in the history
Make handle use the parent.
  • Loading branch information
adam-vessey authored May 25, 2021
2 parents 73031cd + 4155409 commit 5de506d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ protected function getRequestParams(): array {
[
'index' => 1,
'type' => 'URL',
'data' => $this->entity->toUrl()->setAbsolute()->toString(TRUE)->getGeneratedUrl(),
'data' => $this->getExternalUrl(),
],
],
'query' => [
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/Action/IdentifierAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit 5de506d

Please sign in to comment.