mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 20:36:07 +01:00 
			
		
		
		
	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
This commit is contained in:
		@@ -2852,7 +2852,12 @@ function initVueComponents() {
 | 
				
			|||||||
          params.set('repo-search-page', `${this.page}`);
 | 
					          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() {
 | 
					      toggleArchivedFilter() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user