Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

routeEnhancers as a standalone URL #173

Open
firmenpunkt opened this issue Jul 11, 2023 · 0 comments
Open

routeEnhancers as a standalone URL #173

firmenpunkt opened this issue Jul 11, 2023 · 0 comments

Comments

@firmenpunkt
Copy link

I got the routeEnhancers with filters working (TYPO3 11 ke_search 5.0.2), but the generated URL does not work if I reload it, or copy-paste it to another browser etc.
I implemented the "full example" in https://docs.typo3.org/p/tpwd/ke_search/5.0/en-us/Configuration/RoutingSpeakingUrls.html
The search works, The URL looks like this: www.example.com/productsearch/score/desc/0/1/////caregory1

The error message if I reload the page is:

(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
PHP Warning: Cannot assign an empty string to a string offset in /path../typo3conf/ext/ke_search/Classes/Lib/SearchHelper.php line 313

If I put dashes to the filters like

      filter_1: '-'
      filter_2: '-'
      filter_3: '-'
      filter_4: '-'

the error message changes to:

Parameter "tx_kesearch_pi1__filter_4" for route "enhancer_tx_kesearch_pi100000000174b4617000000007c19c61d" must match "[0-9a-zA-Z-]*" ("- -- -" given) to generate a corresponding URL.

How can I make these URLs work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant