Skip to content

Commit

Permalink
Fix generated markdown search link not prefilling the query field
Browse files Browse the repository at this point in the history
- When improving the search the field name for the query also changed. Adapt the markdown parser to use the new field name so the query field can be prefilled when searching for user handles
  • Loading branch information
BentiGorlich committed Jan 14, 2025
1 parent 5a25fde commit 5e431f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Markdown/CommonMark/MentionLinkParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
};
}
Expand Down

0 comments on commit 5e431f6

Please sign in to comment.