Hello everyone.

Problem/Motivation

Encountered the issue related to views exposed filters.
So user sets some filters and then selects a bulk operation and executes it. After execution user is being redirected to view main page. So if view is not configured to remember exposed filters - all filters are lost. So user should set filters again.

Proposed resolution

So I think need to implement one thing of the following:
1. Remember all query parameters (not only route and it's parameters) when creating tempstore data, and the build redirection using route + parameters + query_parameters.
2. Add exposed input of the view to the redirect URL as query parameters (since exposed input is passed as query parameters).

Remaining tasks

Review and test.

User interface changes

None.

API changes

None.

Data model changes

Only data stored in tempstore (adding query parameters).

Comments

mpolishchuck created an issue. See original summary.

mpolishchuck’s picture

Here I've tried to implement the option 2 from the Proposed Resolution. It resolves the issue.

graber’s picture

Status: Active » Needs review
batkor’s picture

mpolishchuck , ty!
Works for me, to 28.09.18 D8.5.0

trevorbradley’s picture

Status: Needs review » Reviewed & tested by the community

Was running VBO against a massive Apache Solr Search view that attempted to return tens of thousands of records if there were no parameters passed. That and my users would expect to come back to the same "page" with parameters passed in.

This works gloriously. +1 to Patch #2.

Though... I notice that my URL does change slightly, from:

http://www.my.vm/search?search="ZIP+ZOP"

to

http://www.my.vm/search?search="ZIP%20ZOP"

+'s become %20's. No effect on the results of the search though - I assume we don't care?

  • Graber committed d50a664 on 8.x-2.x authored by mpolishchuck
    Issue #3000714 by mpolishchuck, batkor, TrevorBradley: Views exposed...
graber’s picture

Status: Reviewed & tested by the community » Fixed

Thanks guys!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.