Useful snippets for working with URL from a lient script
var query = [
"active=true",
"short_description=Created " + moment().format("YYYY-MM-DD")
].join("^");
var url = new GlideURL("incident.do");
url.addParam("sys_id", "-1");
url.addParam("sysparm_query", query);
window.location = url.getURL();