anchor.diff:                  ["index.html"] ->
                       {done, redirect_permanently("/ui/index.html", Req)};
                   ["ui", "index.html"] ->
  -                    {done, menelaus_util:reply_ok(
  -                             Req,
  -                             "text/html; charset=utf8",
  -                             menelaus_pluggable_ui:inject_head_fragments(
  -                               AppRoot, Path, Plugins),
  -                             [{"Cache-Control", "must-revalidate"}])};
  +                    {ui, IsSSL, fun handle_ui_root/4, [AppRoot, Path, Plugins]};
                   ["classic-index.html"] ->
  -                    {done, menelaus_util:serve_static_file(
  -                             Req, {AppRoot, Path},
  -                             "text/html; charset=utf8",
  -                             [{"Cache-Control", "must-revalidate"}])};
  +                    {ui, IsSSL, fun handle_classic_index_html/3, [AppRoot, Path]};
                   ["dot", Bucket] ->
                       {{[{bucket, Bucket}, settings], read}, fun handle_dot/2, [Bucket]};
                   ["dotsvg", Bucket] ->
  
positive.code:     true.
  
  -type action() :: {done, term()} |
                    {rbac_permissions() | no_check, fun()} |
                    {rbac_permissions() | no_check, fun(), [string()]}.
  
  -spec get_action(mochiweb_request(), {term(), term()}, string(), [string()]) -> action().
  get_action(Req, {AppRoot, Plugins}, Path, PathTokens) ->
      case Req:get(method) of
          Method when Method =:= 'GET'; Method =:= 'HEAD' ->
              case PathTokens of
  
negative.code:         'POST' ->
              case PathTokens of
                  ["uilogin"] ->
                      {ui, IsSSL, fun handle_uilogin/1};
                  ["uilogout"] ->
                      {done, handle_uilogout(Req)};
                  ["sampleBuckets", "install"] ->
  