We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In search pages, when submitting the SearchForm, other query parameters (e.g. facets filters and sorting) are getting lost.
Steps to reproduce:
Expected result:
Actual result:
Proposed solution: Preserve all query parameters when submitting the SearchForm.
/** * {@inheritdoc} */ public function submitForm(array &$form, FormStateInterface $form_state): void { $config = $form_state->get('oe_whitelabel_search_config'); $url = Url::fromUri('base:' . $config['form']['action'], [ 'language' => $this->languageManager->getCurrentLanguage(), 'absolute' => TRUE, 'query' => $this->requestStack->getCurrentRequest()->query->all(), ]); $url->mergeOptions([ 'query' => [ $config['input']['name'] => $form_state->getValue('search_input'), ], ]); $form_state->setRedirectUrl($url); }
Lets discuss it if you agree with the approach.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In search pages, when submitting the SearchForm, other query parameters (e.g. facets filters and sorting) are getting lost.
Steps to reproduce:
Expected result:
Actual result:
Proposed solution:
Preserve all query parameters when submitting the SearchForm.
Lets discuss it if you agree with the approach.
The text was updated successfully, but these errors were encountered: