From 8380190834e9c40de4421deced6e87431622231a Mon Sep 17 00:00:00 2001 From: BentiGorlich Date: Tue, 14 Jan 2025 16:03:56 +0000 Subject: [PATCH] Fix generated markdown search link not prefilling the query field (#1369) --- src/Markdown/CommonMark/MentionLinkParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Markdown/CommonMark/MentionLinkParser.php b/src/Markdown/CommonMark/MentionLinkParser.php index ee420ccb6..fce75ea98 100644 --- a/src/Markdown/CommonMark/MentionLinkParser.php +++ b/src/Markdown/CommonMark/MentionLinkParser.php @@ -148,7 +148,7 @@ private function resolveRouteDetails(MentionType $type): array MentionType::Magazine => ['route' => 'front_magazine', 'param' => 'name'], MentionType::RemoteMagazine => ['route' => 'front_magazine', 'param' => 'name'], MentionType::RemoteUser => ['route' => 'user_overview', 'param' => 'username'], - MentionType::Search => ['route' => 'search', 'param' => 'q'], + MentionType::Search => ['route' => 'search', 'param' => 'search[q]'], MentionType::User => ['route' => 'user_overview', 'param' => 'username'], }; }