diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-22 00:09:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-22 00:09:00 +0300 |
commit | 3b6bc9a3af9bf34d709cd3f6de6b495b630f159d (patch) | |
tree | 810f9603d961812ca84cad8821f63e3c9c3bca66 /app/assets/javascripts/search | |
parent | 72c5d10ab9786a311515ff53e69c9638b85025de (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/search')
-rw-r--r-- | app/assets/javascripts/search/dropdown_filter/components/dropdown_filter.vue | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/assets/javascripts/search/dropdown_filter/components/dropdown_filter.vue b/app/assets/javascripts/search/dropdown_filter/components/dropdown_filter.vue index b6e2dd46358..08619fa2066 100644 --- a/app/assets/javascripts/search/dropdown_filter/components/dropdown_filter.vue +++ b/app/assets/javascripts/search/dropdown_filter/components/dropdown_filter.vue @@ -43,7 +43,15 @@ export default { return this.filterData.filters.ANY.value; }, set(filter) { - visitUrl(setUrlParams({ [this.filterData.filterParam]: filter })); + // we need to remove the pagination cursor to ensure the + // relevancy of the new results + + visitUrl( + setUrlParams({ + page: null, + [this.filterData.filterParam]: filter, + }), + ); }, }, selectedFilterText() { |