diff --git a/Sources/Display.php b/Sources/Display.php index 83ba283758..90b2edefec 100644 --- a/Sources/Display.php +++ b/Sources/Display.php @@ -1500,8 +1500,8 @@ function prepareDisplayContext($reset = false) $output = array( 'attachment' => loadAttachmentContext($message['id_msg'], $context['loaded_attachments']), 'id' => $message['id_msg'], - 'href' => $scripturl . '?msg=' . $message['id_msg'], - 'link' => '' . $message['subject'] . '', + 'href' => $scripturl . '?topic=' . $topic . '.msg' . $message['id_msg'] . '#msg' . $message['id_msg'], + 'link' => '' . $message['subject'] . '', 'member' => &$memberContext[$message['id_member']], 'icon' => $message['icon'], 'icon_url' => $settings[$context['icon_sources'][$message['icon']]] . '/post/' . $message['icon'] . '.png',