Browse Source

Prevent empty query parameter being set on dashboard (#11561)

Prevent the dashboard from setting an empty query parameter

Fix #11543

Signed-off-by: Andrew Thornton art27@cantab.net
tags/v1.13.0-rc1
zeripath 4 years ago
parent
commit
788b8b1440
No account linked to committer's email address
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      web_src/js/index.js

+ 6
- 1
web_src/js/index.js View File

@@ -2852,7 +2852,12 @@ function initVueComponents() {
params.set('repo-search-page', `${this.page}`);
}

window.history.replaceState({}, '', `?${params.toString()}`);
const queryString = params.toString();
if (queryString) {
window.history.replaceState({}, '', `?${queryString}`);
} else {
window.history.replaceState({}, '', window.location.pathname);
}
},

toggleArchivedFilter() {

Loading…
Cancel
Save