Closed arildm closed 1 week ago
A general pattern in the app is that a search action is triggered if the search
URL param is changed. This works via the Searches service. Selecting a search history option will simply change the URL params, so if the search
value is unchanged, no search is triggered.
It is not expected that changing the corpus selection (and consequently the corpus
URL param) should trigger a search. So the Searches service shouldn't react to that.
I guess what is needed is a function to explicitly trigger the search. This should be used by the Search button as well as the search history selector.
Other parts of the app will set the search
param to null
before setting it to the desired value, in order to trigger the Searches service.
Both of these solutions (trigger explicitly; unset first) require being in the Angular context. So this should probably be done as a part of: