can we have exposed filter in block redirect to view URL without appending parameters

Created on 28 February 2024, 10 months ago
Updated 10 September 2024, 3 months ago

I have a search block on homepage. When you search,it navigates to view page but appends query params like /search?keywords=test&stores=1141

Steps to reproduce

  1. Create a database search view.
  2. Create a page with exposed filters which will display on view page.
  3. Create a block display with exposed filters which only has 2 fields out of other exposed filters on view page.
  4. Place the block on homepage.
  5. When you filter, the page redirects to view page with query parametres appened to the url.
  6. Is there a way to hide exposed filter param from url? (P.S> i have tried using event subscriber but have trouble setting expposed filter on view page )
  7. Also , if i have a sort block (which is exposed as a different block but placed on view page itself) it refreshes the page even when AJAX is enabled.

Any suggestions will be appreciated!

💬 Support request
Status

Closed: works as designed

Version

9.5

Component
Views 

Last updated about 5 hours ago

Created by

🇮🇳India Aish17895

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

Comments & Activities

  • Issue created by @Aish17895
  • Status changed to Postponed: needs info 10 months ago
  • 🇳🇱Netherlands Lendude Amsterdam

    Not 100% clear what you would want/expect to see but it sort of sounds like you want the exposed filter to do a POST request and not a GET request.

    You can probably do that through a form alter hook, not sure how well it will play along with other parts of the View if you do that.

  • Status changed to Closed: works as designed 3 months ago
  • 🇳🇿New Zealand quietone

    Since a Views maintainer has answered here, making a suggestion as well, and there has been no further discussion it is time to close this. Also, this is for an unsupported version of Drupal.

    The Drupal Core issue queue is not the ideal place for support requests. The 'support request' option is there for filing support issues for contributed modules and themes. There are several support options listed on our support page (Community > Support at the top of Drupal.org) and there is Drupal Slack . You may get better replies in one of those places.

Production build 0.71.5 2024