Parameters in url generate an error

Created on 19 August 2024, 4 months ago
Updated 19 September 2024, 3 months ago

Problem/Motivation

My views have exposed fields with multiple selections allowed. If the ajax history option is activated, the view works well but if i reloaded the page with the history parametrs in url it's generate error :

Symfony\Component\HttpKernel\Exception\BadRequestHttpException: Input value "type" contains a non-scalar value. in Symfony\Component\HttpKernel\HttpKernel->handle() (line 83 of /app/devs/vendor/symfony/http-kernel/HttpKernel.php).

What I'm seeing is that with the ajax option enabled, the view works, but if you want to access the page by adding the parameters directly in the URL it doesn't work.
Example:
This URL works: https://www.enerdata.net/about-us/references/
If I check Case study and click on the Apply button, the URL is set to https://www.enerdata.net/about-us/references/?type[case_study]=case_study and the display is working (thanks to ajax).
But if I try to access the webpage directly from the following URL: https://www.enerdata.net/about-us/references/?type[case_study]=case_study then it doesn't work.

Setup

  • Drupal Core version: 10.2.6
  • Search API version: 8.x-1.31
  • Views Ajax History: 1.7
🐛 Bug report
Status

Active

Version

1.7

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024