Skip to content

Commit

Permalink
Don't let aliased URLs be the identifier's location by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
DDEV User committed Jun 17, 2024
1 parent 881a302 commit 8396075
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 8396075

Please sign in to comment.