Parcourir la source

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

Prevent the dashboard from setting an empty query parameter

Fix #11543

Signed-off-by: Andrew Thornton art27@cantab.net
tags/v1.12.0-rc2
zeripath il y a 4 ans
Parent
révision
ca61046f9f
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6
    1
      web_src/js/index.js

+ 6
- 1
web_src/js/index.js Voir le fichier

@@ -2854,7 +2854,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() {

Chargement…
Annuler
Enregistrer