From 6f12043e2a6fa39158ba70567bd6f70031bd7429 Mon Sep 17 00:00:00 2001 From: John Rayes Date: Wed, 25 Dec 2024 03:47:29 -0700 Subject: [PATCH] rewrite message links to use long form --- Sources/Msg.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Msg.php b/Sources/Msg.php index 5dcf71f3e0..cb4f574498 100644 --- a/Sources/Msg.php +++ b/Sources/Msg.php @@ -293,7 +293,7 @@ public function format(int $counter = 0, array $format_options = []): array 'id' => $this->id, 'topic' => $this->id_topic, 'board' => $format_options['load_board'] ? Board::init($this->id_board) : $this->id_board, - 'href' => Config::$scripturl . '?msg=' . $this->id . (!empty($format_options['url_params']) ? ';' . implode(';', $format_options['url_params']) : ''), + 'href' => Config::$scripturl . '?topic=' . $this->id_topic . '.msg' . $this->id . '#msg' . $this->id . (!empty($format_options['url_params']) ? ';' . implode(';', $format_options['url_params']) : ''), 'subject' => ($this->subject ?? '') != '' ? $this->subject : Lang::$txt['no_subject'], 'time' => Time::create('@' . $this->poster_time)->format(), 'timestamp' => $this->poster_time,