Skip to content

Commit

Permalink
Merge pull request #47 from discoverygarden/fix/non-aliased-url
Browse files Browse the repository at this point in the history
DDST-277: Don't let aliased URLs be the identifier's location by default.
  • Loading branch information
nchiasson-dgi authored Jun 24, 2024
2 parents d26fca8 + 8396075 commit 5c4250d
Showing 1 changed file with 1 addition and 1 deletion.
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()->setAbsolute()->toString(TRUE)->getGeneratedUrl();
return $this->entity->toUrl()->setAbsolute()->setOption('alias', TRUE)->toString(TRUE)->getGeneratedUrl();
}

/**
Expand Down

0 comments on commit 5c4250d

Please sign in to comment.