Closed (works as designed)
Project:
Views display switch
Version:
1.1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2022 at 12:10 UTC
Updated:
16 Sep 2024 at 10:53 UTC
Jump to comment: Most recent
Comments
Comment #3
stefdewa commentedAdded an MR which is based on the "facets" login in search_api ( https://git.drupalcode.org/project/search_api/-/blob/8.x-1.x/search_api.... ). A hidden field is added to the exposed form containing the mode.
Comment #4
stefdewa commentedMore background information:
This patch would not be needed if the core issue #2681953: Allow exposed form to preserve URL query parameters is resolved. Then you could configure the view to retain the 'mode' query parameter.
Additionally, if you use better_exposed_filters, you also need the patch from better_exposed_filters issue #3119947: Allow exposed form to preserve URL query parameters .
Comment #5
luksak@Stefdewa Thank you for the issue and the MR!
I'm a bit unsure about how we should handle this, since there is an existing issue against core. I'd prefer not to commit this, since this is not an issue of this module. Do you agree?
Comment #6
joco_sp commentedI have the same problem.
The patch mentioned in the #4 for the core didn't work for me, so I tried the solution from this MR and it solved the issue.
Thank you @Stefdewa :)
Comment #7
luksak@Stefdewa can you confirm this?
Comment #8
stefdewa commentedAt the time that I created this issue, the problem was resolved for me when I used the two patches from #4. I agree that you don't include the patch I created because the problem should be solved upsteam. User joco_sp can still use the patch here if the patches didn't work for him for some reasen. I would keep this issue 'Closed' and wait until at least the core issue is resolved. Then, test again and reevaluate.
Comment #9
luksakOk, thank you for your feedback!