code: function (data) {
              var temp = addPath(validUrls, url.parse(data.href), bs.options.get("mode"));
              methods.sendUpdatedIfChanged(validUrls, temp, ui.socket);
          }
docs: Add a new path
  @param data