[ENTITY][ActorTag] Fix url in actor tag

This commit is contained in:
Hugo Sales 2021-12-09 16:34:07 +00:00
parent 26b95fae96
commit c137a484af
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -137,7 +137,7 @@ class ActorTag extends Entity
public function getUrl(?Actor $actor = null): string public function getUrl(?Actor $actor = null): string
{ {
$params = ['tag' => $this->getCanonical()]; $params = ['canon' => $this->getCanonical(), 'tag' => $this->getTag()];
if (!\is_null($actor)) { if (!\is_null($actor)) {
$params['lang'] = $actor->getTopLanguage()->getLocale(); $params['lang'] = $actor->getTopLanguage()->getLocale();
} }