[Embed][ENTITY] Fix embed route and use attachment_view rather than _show. Rename Entity::have to Entity::has, because grammar

This commit is contained in:
2021-04-28 20:15:43 +00:00
parent 30107de079
commit b1e514832b
3 changed files with 18 additions and 15 deletions

View File

@@ -209,7 +209,7 @@ class AttachmentEmbed extends Entity
public function getAttachmentUrl()
{
return Router::url('attachment_show', ['id' => $this->getAttachmentId()]);
return Router::url('attachment_view', ['id' => $this->getAttachmentId()]);
}
public function isImage()