2 import { serialize_form, clean_up_url_parameters } from '../lib/api_utils.js';
3 import { refresh_page } from '../lib/stores.js';
5 function handleSubmit(event) {
6 event.preventDefault();
8 var target_url = serialize_form(event.target);
9 target_url = clean_up_url_parameters(target_url);
11 window.history.pushState({}, '', '?' + target_url);
16 <form on:submit={handleSubmit} class="form-inline" role="search" accept-charset="UTF-8" action="">