code: function routeUrl(location) {
      if (location.hash.indexOf('#/register') == 0) {
          var hashparts = location.hash.split('?');
          var params = {};
          if (hashparts.length == 2) {
              var pairs = hashparts[1].split('&');
              for (var i = 0; i < pairs.length; ++i) {
                  var parts = pairs[i].split('=');
                  if (parts.length != 2) continue;
                  params[decodeURIComponent(parts[0])] = decodeURIComponent(parts[1]);
              }
          }
          window.matrixChat.showScreen('register', params);
      }
  }
docs: Here, we do some crude URL analysis to allow deep-linking. We only support registration deep-links in this example.