From: Alexander Ebert Date: Thu, 26 Oct 2023 10:40:12 +0000 (+0200) Subject: Generate a proper link to the thumbnail X-Git-Tag: 6.0.3_dev_1~60^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4a64d0a55a7efed4b40ee52beae003f02c92f828;p=GitHub%2FWoltLab%2FWCF.git Generate a proper link to the thumbnail Using only the ID will cause the canonical URL to mismatch, triggering a pointless redirect. --- diff --git a/wcfsetup/install/files/lib/data/attachment/Attachment.class.php b/wcfsetup/install/files/lib/data/attachment/Attachment.class.php index 6d8559bf1e..b202b4045c 100644 --- a/wcfsetup/install/files/lib/data/attachment/Attachment.class.php +++ b/wcfsetup/install/files/lib/data/attachment/Attachment.class.php @@ -232,7 +232,7 @@ class Attachment extends DatabaseObject implements ILinkableObject, IRouteContro public function getThumbnailLink($size = '') { $parameters = [ - 'id' => $this->attachmentID, + 'object' => $this, ]; if ($size == 'tiny') {