Problem/Motivation
Default (exposed) filters are a special case we need to test, discuss and document!
We just came across a case where we have a view with an exposed "Country" filter for contacts. By default that filter is set to "Germany".
Testing this view, we saw an unexpected "nofollow" added on all pager links.
So we should probably add a test and if this is not a bug, a setting to ignore default exposed filters?
Comments
Comment #2
anybodyOkay @grevil found it! Seems to be fine (still documenting and adding a dedicated test) makes sense.
The root cause was, that we tested in the views preview, which seems to add
to the URL, so we should also exclude these. @grevil will do that in the alpha release review task!
The behavior seems correct:
@scott_euser what do you think how to best proceed here?
Comment #3
scott_euser commentedThere should be an input field in the settings where you can ignore particular query strings. I suppose the field description could be more clear to explain that as a use case for it perhaps
Comment #4
scott_euser commentedMaybe grevil can check if there is a way of automating that rather than manually adding (eg based on view config defaults).
Comment #5
grevil commented@scott_euser, so you would advise to not update the "core keys" to include:
?
IMO this would be the easiest and fastest fix. We could also adjust the defaults of "ignored_query_keys" to include:
by default.
I wouldn't automate aynthing based on view config defaults TBH.
Comment #6
grevil commentedEither way, even when minor let's implement it here and let #3623596: Alpha release stay seperate.
Comment #7
anybodyI think it's totally fine to add them to the core exclusions! Views is core, so I think that's fine (from my side).
@scott_euser should we somehow document the default (exposed) filter behaviour or add a dedicated test? (Or is there already one you created?)