Search suggestion generates wrong url
Summary
When using the search on extensions.typo3.org with "tailwind" a search suggestion is shown "tailwindcs".
When clicking on that link the search is reset. The url param "q" seems wrong and needs to be in the solr namespace.
Steps to reproduce
- Go to: https://extensions.typo3.org/?L=0&id=1&tx_solr%5Bq%5D=tailwind
- Click the "tailwindcs" link
Example URL
https://extensions.typo3.org/?L=0&id=1&tx_solr%5Bq%5D=tailwind
What is the current bug behavior?
The generated suggestion for "tailwindcs" generates the following link: https://extensions.typo3.org/?q=tailwindcs
What is the expected correct behavior?
The generated suggestion for "tailwindcs" should generate the following link: https://extensions.typo3.org/?L=0&id=1&tx_solr%5Bq%5D=tailwindcs
Acceptence Criterias
-
Suggestion link should work as expected
Relevant logs and/or screenshots
Possible fixes
This "additionalParams" in this line are wrong: https://git.typo3.org/services/t3o-sites/extensions.typo3.org/ter/-/blob/develop/extensions/ter_layout/Resources/Private/Templates/Solr/Search/Results.html?ref_type=heads#L48
<f:link.page additionalParams="{q:suggestion.suggestion}">{suggestion.suggestion}</f:link.page>
The "additionalParams" need to be like in this line: https://git.typo3.org/services/t3o-sites/extensions.typo3.org/ter/-/blob/develop/extensions/ter_layout/Resources/Private/Templates/Solr/Search/Results.html?ref_type=heads#L18
<f:link.page additionalParams="{tx_solr:{q:suggestion.suggestion}}">{suggestion.suggestion}</f:link.page>