/** * Client code for the navbar template. * * - events */ Template.navbar.events({ "submit .js-search-form": function (event) { event.preventDefault(); const search = $(event.target["search-term"]).val(); // FIXME Prevent XSS and CSRF. Router.go("/search/" + search); } });