code: function(id, location) {
  		var search = "?"+ (location.search || "") + "&hid=" + id;
  		return (location.pathname || '/') 
  			+ search
  			+ (location.hash ? ("#" + location.hash) : "");
  	}
docs: produce href with hid in search part