teaminmedias-pluswerk / ke_search

Search Extension for TYPO3 Content Management System, including faceting search functions.
https://extensions.typo3.org/extension/ke_search/
GNU General Public License v3.0
35 stars 62 forks source link

Sorting with a multi-word search breaks #439

Closed mikestreety closed 2 years ago

mikestreety commented 2 years ago

The sorting template uses a typolink (https://github.com/teaminmedias-pluswerk/ke_search/blob/master/Resources/Private/Partials/Sorting.html#L13) which means when you have a multi word search (e.g. hello world) Typo3 interprets this as a search for "hello" and a target of "world" - so the sorting links don't work.

In my local template I have replaced the typolink tag with an <a href="">

christianbltr commented 2 years ago

Unfortunately I could not reproduce this issue.

My test scenario:

Auswahl_029

I search for "lorem ipsum". I clicked the "Date" link in the sort options - sorting works.

The generated link is:

[...]?tx_kesearch_pi1%5Bfilter_1%5D=&tx_kesearch_pi1%5BsortByDir%5D=desc&tx_kesearch_pi1%5BsortByField%5D=sortdate&tx_kesearch_pi1%5Bsword%5D=lorem%20ipsum

How can I reproduce the issue?

christianbltr commented 2 years ago

ke_search has moved to https://github.com/tpwd/ke_search/, therefore this issue will be closed now. Please feel free to open another issue at https://github.com/tpwd/ke_search/issues if you feel this issue should still be addressed.